- All Implemented Interfaces:
- org.apache.log4j.Appender, org.apache.log4j.spi.OptionHandler
public class ERXThreadStorageAppender
extends org.apache.log4j.AppenderSkeleton
Appends all logging in this thread to thread storage if ERXSession.session()
is set. In case of an exception (or whenever you want to), you can call
ERXThreadStorageAppender.messages()
to get the full log.
This is useful because you don't clutter up your log with stuff you don't
really need most of the time, but still get full logging in case something
bad happens.
- Author:
- ak