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 <[EMAIL PROTECTED]> 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:
> > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> > 
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> 
> 
> __________________________________
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product search
> http://shopping.yahoo.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to