public class DesignerLogAppender extends AppenderSkeleton
closed, errorHandler, headFilter, layout, name, tailFilter, threshold| 构造器和说明 |
|---|
DesignerLogAppender() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
append(LoggingEvent event)
Subclasses of
AppenderSkeleton should implement this
method to perform actual logging. |
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.
|
void |
subAppend(LoggingEvent event) |
activateOptions, addFilter, clearFilters, doAppend, finalize, getErrorHandler, getFilter, getFirstFilter, getLayout, getName, getThreshold, isAsSevereAsThreshold, setErrorHandler, setLayout, setName, setThresholdprotected void append(LoggingEvent event)
AppenderSkeletonAppenderSkeleton should implement this
method to perform actual logging. See also AppenderSkeleton.doAppend method.append 在类中 AppenderSkeletonpublic boolean requiresLayout()
Appendertrue,
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.
public void close()
AppenderIt is a programming error to append to a closed appender.
public void subAppend(LoggingEvent event)