public class ErrorInfoLogAppender extends AppenderSkeleton
Created by Administrator on 2017/7/24 0024.
closed, errorHandler, headFilter, layout, name, tailFilter, threshold
构造器和说明 |
---|
ErrorInfoLogAppender() |
限定符和类型 | 方法和说明 |
---|---|
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, setThreshold
protected void append(LoggingEvent event)
AppenderSkeleton
AppenderSkeleton
should implement this
method to perform actual logging. See also AppenderSkeleton.doAppend
method.append
在类中 AppenderSkeleton
public boolean requiresLayout()
Appender
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
.
public void close()
Appender
It is a programming error to append to a closed appender.
public void subAppend(LoggingEvent event)