final public class CastorAppender extends AppenderSkeleton (Code)
The CastorAppender provides sending log events to a database.
Each append call adds the LoggingEvent to an ArrayList
buffer. When the buffer is filled each log event is saved to the database.
DatabaseName, BufferSize, ColumnWidthClass,
ColumnWidthThread, ColumnWidthMessage, ColumnWidthStackTrace and
DuplicateCount are configurable options in the standard log4j ways.
author: Holger West
When the program has ended all logger instances are destroyed. To save all data
which are still in the buffer, this method must be called. It saves all data from
all registered CastorAppender.
As an alternative org.apache.log4j.LogManager.shutdown() can be
called.