@Plugin(name="Servlet", category="Core", elementType="appender", printObject=true) public class ServletAppender extends AbstractAppender
LifeCycle.State
LOGGER
Modifier and Type | Method and Description |
---|---|
void |
append(LogEvent event)
Log in
Appender specific way. |
static ServletAppender |
createAppender(Layout<? extends Serializable> layout,
Filter filter,
String name,
String ignore)
Create a Console Appender.
|
error, error, error, getHandler, getLayout, getName, ignoreExceptions, parseInt, setHandler, toString
addFilter, getFilter, hasFilter, isFiltered, removeFilter, start, stop
getState, isInitialized, isStarted, isStarting, isStopped, isStopping, setStarted, setStarting, setState, setStopped, setStopping
public void append(LogEvent event)
Appender
Appender
specific way. When appropriate,
Loggers will call the doAppend
method of appender
implementations in order to log.event
- The LogEvent.@PluginFactory public static ServletAppender createAppender(@PluginElement(value="Layout") Layout<? extends Serializable> layout, @PluginElement(value="Filter") Filter filter, @PluginAttribute(value="name") String name, @PluginAttribute(value="ignoreExceptions",defaultBoolean=true) String ignore)
layout
- The layout to use (required).filter
- The Filter or null.name
- The name of the Appender (required).ignore
- If "true"
(default) exceptions encountered when appending events are logged; otherwise
they are propagated to the caller.Copyright © 1999-2018 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.