public interface Appender extends LifeCycle
LifeCycle.State
Modifier and Type | Method and Description |
---|---|
void |
append(LogEvent event)
Log in
Appender specific way. |
ErrorHandler |
getHandler() |
Layout<? extends Serializable> |
getLayout()
Returns this appender's layout.
|
String |
getName()
Get the name of this appender.
|
boolean |
ignoreExceptions()
Some appenders need to propagate exceptions back to the application.
|
void |
setHandler(ErrorHandler handler) |
void append(LogEvent event)
Appender
specific way. When appropriate,
Loggers will call the doAppend
method of appender
implementations in order to log.event
- The LogEvent.String getName()
Layout<? extends Serializable> getLayout()
boolean ignoreExceptions()
ignoreExceptions
is
false
the AppenderControl will allow the exception to percolate.true
if exceptions will be logged but now thrown, false
otherwise.ErrorHandler getHandler()
void setHandler(ErrorHandler handler)
Copyright © 1999-2015 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.