public class ConsoleAppender extends AppenderSkeleton
AppenderSkeleton.NoOpErrorHandler
closed, errorHandler, headFilter, layout, name, tailFilter, threshold
Constructor and Description |
---|
ConsoleAppender() |
Modifier and Type | Method and Description |
---|---|
protected void |
append(LoggingEvent theEvent) |
void |
close()
Release any resources allocated within the appender such as file
handles, network connections, etc.
|
boolean |
requiresLayout()
Configurators call this method to determine if the appender
requires a layout.
|
activateOptions, addFilter, clearFilters, doAppend, finalize, getErrorHandler, getFilter, getFirstFilter, getLayout, getName, getThreshold, isAsSevereAsThreshold, setErrorHandler, setLayout, setName, setThreshold
public ConsoleAppender()
public void close()
It is a programming error to append to a closed appender.
public boolean requiresLayout()
true
,
meaning that layout is required, then the configurator will
configure an layout using the configuration information at its
disposal. If this method returns false
, meaning that
a layout is not required, then layout configuration will be
skipped even if there is available layout configuration
information at the disposal of the configurator..
In the rather exceptional case, where the appender
implementation admits a layout but can also work without it, then
the appender should return true
.
protected void append(LoggingEvent theEvent)
append
in class AppenderSkeleton
Copyright © 1999-1969 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.