logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Smith <paul.sm...@lawlex.com.au>
Subject Re: SMTP Appender Threshold
Date Thu, 09 Oct 2003 21:55:43 GMT
Check out the JavaDocs for the setEvaluatorClass(String) method on
SMTPAppender, and see the JavaDocs for the TriggeringEventEvaluator
interface.

By setting the Threshold of the SMTPAppender, you are defining what
events are candidates to go into the buffer, rather than what triggers
the sending of the email.

cheers,

Paul Smith

On Fri, 2003-10-10 at 07:50, Ken Hoying wrote:
> Looking at the documentation, it would appear that
> setting the Threshold parameter to DEBUG should
> accomplish what I want.  However, this does not appear
> to be working as documented.  I think this is a bug.
> 
> Thanks,
> Ken
> 
> --- Paul Smith <paul.smith@lawlex.com.au> wrote:
> > By default, the SMTPAppender _waits_ for an ERROR
> > level logging event to
> > arrive, and sends with it the BufferSize # of
> > previous events before it
> > inside the email for use in context.  Think of the
> > Buffer as a sliding
> > window of events that gets triggered by the arrival
> > of Error.
> > 
> > There are some configuration parameters to set which
> > allow you to
> > determine exactly what is the appropriate trigger,
> > an ERROR level event
> > is just the default.
> > 
> > Consult the JavaDocs on the SMTPAppender for more
> > information, or Ceki's
> > book "The Complete Log4j Manual" is an excellent
> > source for this.
> > 
> > cheers,
> > 
> > Paul
> > 
> > On Fri, 2003-10-10 at 01:17, Ken Hoying wrote:
> > > Ok.  I seem to have the SMTP Appender working now
> > but
> > > it seems to be ignoring my Threshold property
> > setting.
> > >  I want to test by sending DEBUG messages to teh
> > SMTP
> > > appender.  However, it seems to be ignoring these.
> >  Is
> > > this a bug?
> > > 
> > > Thanks,
> > > Ken
> > > 
> > > __________________________________
> > > Do you Yahoo!?
> > > The New Yahoo! Shopping - with improved product
> > search
> > > http://shopping.yahoo.com
> > > 
> > >
> >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > log4j-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail:
> > log4j-user-help@jakarta.apache.org
> > 
> > 
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > log4j-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> > log4j-user-help@jakarta.apache.org
> > 
> 
> 
> __________________________________
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product search
> http://shopping.yahoo.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: log4j-user-help@jakarta.apache.org


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


Mime
View raw message