SMTPAppender sends a seperate mail for each logging event
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Pratik_Patel
Posted On:   Thursday, December 30, 2004 09:46 PM


i have set the buffer size that is large enough to acomodate several logging events.But my SMTPAppender sends a seperate mail for each logging event.

Can u please tell me what can be the problem ?

Re: SMTPAppender sends a seperate mail for each logging event

Posted By:   Anonymous  
Posted On:   Friday, January 28, 2005 01:14 PM

The SMTPAppender accumulates loggging events in a fixed sized buffer and sends the buffer contents when it receives a triggering event (e.g. could be set up to be triggered for FATAL or ERROR).

If each logging event you are referring to is a trigger event then you would get an email for each one.


Without more details it's hard to trouble shoot beyond that.


Quick google and I found a post where they said they created a filter where the trigger was java.io.Exception:


http://www.experts-exchange.com/Programming/Programming_Languages/Java/Q_20728687.html

About | Sitemap | Contact