logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ricardo Moral <ricardo_mo...@yahoo.com>
Subject Re: How to configure SMTPAppender?
Date Fri, 08 Nov 2002 18:21:00 GMT
No this means that you must send a logging event with
a ERROR or FATAL level.

--- louis <louis@allsofts.com> wrote:
> Hi,
> 
> So, do you mean if I using default setting, and use
> logger.warn it should
> able to send me a mail, but I just try it, I still
> can't get the mail.
> Anywhere I did wrong?
> 
> Louis
> ----- Original Message -----
> From: "Ricardo Moral" <ricardo_moral@yahoo.com>
> To: "Log4J Users List"
> <log4j-user@jakarta.apache.org>
> Sent: Friday, November 08, 2002 5:59 PM
> Subject: Re: How to configure SMTPAppender?
> 
> 
> > SMTPAppender will store all the logging events on
> an
> > internal cache and it will send all the messages
> when
> > the TriggeringEventEvaluator you set with the
> > setEvaluatorMethod or the constructor parameter
> return
> > true.
> >
> > By default the evaluator is set with an instance
> of
> > DefaultEvaluator wich is a package-private class
> > defined in the same compilation unit of
> SMTPAppender.
> > This evaluator will return true only when the
> logging
> > event has a priority greater or equal than ERROR.
> >
> > --- louis <louis@allsofts.com> wrote:
> > > 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>
> > >
> >
> >
> > __________________________________________________
> > Do you Yahoo!?
> > U2 on LAUNCH - Exclusive greatest hits videos
> > http://launch.yahoo.com/u2
> >
> > --
> > 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>
> 


__________________________________________________
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/

--
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