You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by bu...@apache.org on 2012/10/30 22:34:21 UTC

[Bug 54078] New: FlashbackAppender: new appender for lost events

https://issues.apache.org/bugzilla/show_bug.cgi?id=54078

          Priority: P2
            Bug ID: 54078
          Assignee: log4j-dev@logging.apache.org
           Summary: FlashbackAppender: new appender for lost events
          Severity: enhancement
    Classification: Unclassified
                OS: Linux
          Reporter: l.bolzani@gmail.com
          Hardware: PC
            Status: NEW
           Version: unspecified
         Component: Appender
           Product: Log4j

Created attachment 29532
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=29532&action=edit
FlashbackAppender prototype

This is a proposal for a generic "appender decorator" that keeps messages that
are below the current logger level to print these "lost" events in case of
error.

The idea is that in case of error you need as much information as possible to
debug the problem and this it usually lost because the log level was too low.

If the problem is hard to reproduce you can not raise the log level after the
exception. Even if the problem it's easy to reproduce it could be a waste of
time or problematic for production environments.

This is a proof of concept. I used an appender, maybe there are better options.
Current implementation uses a couple of hacks to make the configuration as easy
as possible.
A lot of obvious features are missing (filters for trigger events, etc.).


I'm starting to use this in a stage/production environment to check its
effectiveness.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org