logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sara Prigge <spri...@LTCG.com>
Subject RE: How to configure SMTPAppender?
Date Fri, 08 Nov 2002 18:00:06 GMT
How are you initializing log4j? Is it possible that it hasn't been
initialized?  I'd suggest creating another appender that just writes to a
file and see if you can get that to work.  That will determine whether or
not log4j is even being used or is initialized properly. 

-----Original Message-----
From: louis [mailto:louis@allsofts.com]
Sent: Friday, November 08, 2002 11:59 AM
To: Log4J Users List
Subject: Re: How to configure SMTPAppender?


Hi,

No, I didn't c any error msg, and I only use one appender, not other
appender in my config file except SMTPAppender.

Regards,
Louis
----- Original Message -----
From: "Shapira, Yoav" <Yoav.Shapira@mpi.com>
To: "Log4J Users List" <log4j-user@jakarta.apache.org>
Sent: Friday, November 08, 2002 5:54 PM
Subject: RE: How to configure SMTPAppender?


Hi,
Do you get any error messages anywhere?  Do you see the messages you're
trying to email on other appenders, e.g. a file somewhere?

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: louis [mailto:louis@allsofts.com]
>Sent: Friday, November 08, 2002 12:46 PM
>To: Log4J Users List
>Subject: Re: How to configure SMTPAppender?
>
>Thanks Sara, I try set the Threshold to DEBUG for testing, but I don't
know
>I still can't receive any email.
>
>regards,
>Louis
>----- Original Message -----
>From: "Sara Prigge" <sprigge@LTCG.com>
>To: "'Log4J Users List'" <log4j-user@jakarta.apache.org>
>Sent: Friday, November 08, 2002 5:37 PM
>Subject: RE: How to configure SMTPAppender?
>
>
>> The way I use it, it happens automatically when I log something at
the
>ERROR
>> level or above.
>>
>> -----Original Message-----
>> From: Adams, Dick W [PCS] [mailto:DAdams07@sprintspectrum.com]
>> Sent: Friday, November 08, 2002 11:35 AM
>> To: 'Log4J Users List'
>> Subject: RE: How to configure SMTPAppender?
>>
>>
>>
>> Does the e-mail then happen automatically, or does one have to extend
>> SMTPAppender?
>>
>> -----Original Message-----
>> From: Sara Prigge [mailto:sprigge@LTCG.com]
>> Sent: Friday, November 08, 2002 11:32 AM
>> To: 'Log4J Users List'
>> Subject: RE: How to configure SMTPAppender?
>>
>>
>> This is how I use it in my xml:
>>
>> <appender name="email" class="org.apache.log4j.net.SMTPAppender">
>> <param name="Threshold" value="ERROR"/>
>> <param name="SMTPHost" value="99.9.9.9"/>
>> <param name="To" value="someone@abc.com"/>
>> <param name="From" value="someone@abc.com"/>
>> <param name="Subject" value="My email subject"/>
>> <param name="BufferSize" value="1"/>
>>
>> <layout class="org.apache.log4j.PatternLayout">
>> <param name="ConversionPattern" value="%d{ABSOLUTE}
>> (%F:%L) - %m%n"/>
>> </layout>
>> </appender>
>>
>> Hope that helps you!
>>
>> -----Original Message-----
>> From: louis [mailto:louis@allsofts.com]
>> Sent: Friday, November 08, 2002 11:30 AM
>> To: Log4J Users List
>> Subject: How to configure SMTPAppender?
>>
>>
>> Hello,
>>
>>     I want to configure SMTPAppender in my log4j.xml file, and anyone
>tell
>> me what is the syntax (tag)? I can't find any document talking about
the
>> log4j xml structure.
>>
>> Regards,
>> Louis
>>
>>
>>
>> --
>> To unsubscribe, e-mail:
><mailto:log4j-user-unsubscribe@jakarta.apache.org>
>> For additional commands, e-mail:
><mailto:log4j-user-help@jakarta.apache.org>
>>
>> --
>> To unsubscribe, e-mail:
><mailto:log4j-user-unsubscribe@jakarta.apache.org>
>> For additional commands, e-mail:
><mailto:log4j-user-help@jakarta.apache.org>
>>
>> --
>> To unsubscribe, e-mail:
><mailto:log4j-user-unsubscribe@jakarta.apache.org>
>> For additional commands, e-mail:
><mailto:log4j-user-help@jakarta.apache.org>
>>
>> --
>> To unsubscribe, e-mail:
><mailto:log4j-user-unsubscribe@jakarta.apache.org>
>> For additional commands, e-mail:
><mailto:log4j-user-help@jakarta.apache.org>
>>
>
>
>
>--
>To unsubscribe, e-mail:   <mailto:log4j-user-
>unsubscribe@jakarta.apache.org>
>For additional commands, e-mail: <mailto:log4j-user-
>help@jakarta.apache.org>




----------------------------------------------------------------------------
----


> This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.
>
>


----------------------------------------------------------------------------
----


> --
> To unsubscribe, e-mail:
<mailto:log4j-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:log4j-user-help@jakarta.apache.org>



--
To unsubscribe, e-mail:   <mailto:log4j-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:log4j-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org>


Mime
View raw message