logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shmit...@checkfree.com
Subject MemoryAppender
Date Thu, 09 Oct 2003 18:07:23 GMT

Most of our production applications have log threshold set to INFO most of
the time. Request data and response is not logged at INFO level. But to
trouble-shoot an ERROR, the support folks like to have detailed information
about the request that saw the error. It is not always possible to recreate
that error, and there is not much benefit of chaging the log level later. I
am sure this is a familiar issue.

One solution to the above problem is to use an MemoryAppender for DEBUG
level and capture the data required for troubleshooting for each request in
a Collection that stores this info for, say last 50 requests, and dumps
this to another appender on a predefined event. The predefined event could
be a FATAL error or a user initiated event.

Is there a similar Appender available in the distribution or the sandbox ?

Thanks
Shuchi

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message