History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: LBCORE-117
Type: New Feature New Feature
Status: Open Open
Priority: Major Major
Assignee: Logback dev list
Reporter: Aaron Digulla
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
logback-core

Supply an appender that collects N events on all levels and dumps them to the output when an ERROR is logged

Created: 21/Aug/09 02:02 PM   Updated: 04/Oct/10 11:09 AM
Component/s: Appender
Affects Version/s: None
Fix Version/s: None


 Description  « Hide
For many applications, it's not necessary to log at the levels DEBUG and TRACE all the time. In fact, we usually only do this to be able to debug ERROR events.

It would be great if there was an appender that would only collect a configurable number of events internally until a message of level ERROR or above is logged. At this time, the appender should dump it's internal state to the log and reset the internal state.

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Pascal Leclercq - 04/Oct/10 11:09 AM
I have exactly the same requirements. This feature will be extremly usefull I think. Is there any workaround for the time being ?
I think smthg can be done using Evaluators and/or filters but I don't know where to find the last N logging event.