looking for complete example with BufferingForwardingAppender

View: New views
1 Messages — Rating Filter:   Alert me  

looking for complete example with BufferingForwardingAppender

by Chris Harrington-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
I would like my RollingFileAppender to log the last 10 messages at any level
when there is a message at the error level.

I am trying to use the BufferingForwardingAppender for this purpose, but
can't figure out the right levels/thresholds to have it behave properly.
Is this even possible? Do I need to have a separate RollingFileAppender
separate from my main log?
 
Thanks,
Chris