logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ken Hoying <ken_hoy...@yahoo.com>
Subject Re: caching...
Date Mon, 10 Nov 2003 21:23:03 GMT
Most appender support the BufferSize property which
does exactly what you describe.  Beware that in order
to ensure that the buffer get cleared when the system
exits, you generally have to make a call to
LogManager.shutdown().

--- Alan Brown <abrown@opstechnology.com> wrote:
> I'd like to only log debugging messages if a warning
> or error occurs
> shortly afterwards.  In the past I've written my own
> logging systems
> that have cached messages and then logged the last x
> debug messages to
> file if an error occurs.
> 
> Is there a way to do this with Log4J or would I have
> to write my own
> caching mechanism in front of the logger?
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> log4j-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> log4j-user-help@jakarta.apache.org
> 


__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

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