@Plugin(name="Writer", category="Core", elementType="appender", printObject=true) public final class WriterAppender extends AbstractWriterAppender<WriterManager>
Writer
.Modifier and Type | Class and Description |
---|---|
static class |
WriterAppender.Builder<B extends WriterAppender.Builder<B>>
Builds WriterAppender instances.
|
LifeCycle.State
immediateFlush
DEFAULT_STOP_TIMEOUT, DEFAULT_STOP_TIMEUNIT, LOGGER
ELEMENT_TYPE
Modifier and Type | Method and Description |
---|---|
static WriterAppender |
createAppender(StringLayout layout,
Filter filter,
Writer target,
String name,
boolean follow,
boolean ignore)
Creates a WriterAppender.
|
static <B extends WriterAppender.Builder<B>> |
newBuilder() |
append, getManager, getStringLayout, start, stop
error, error, error, getHandler, getLayout, getName, ignoreExceptions, parseInt, requiresLocation, setHandler, toSerializable, toString
addFilter, getFilter, getPropertyArray, hasFilter, isFiltered, removeFilter, stop
equalsImpl, getState, getStatusLogger, hashCodeImpl, initialize, isInitialized, isStarted, isStarting, isStopped, isStopping, setStarted, setStarting, setState, setStopped, setStopping, stop, stop
@PluginFactory public static WriterAppender createAppender(StringLayout layout, Filter filter, Writer target, String name, boolean follow, boolean ignore)
layout
- The layout to use or null to get the default layout.filter
- The Filter or null.target
- The target Writerfollow
- If true will follow changes to the underlying output stream.
Use false as the default.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. Use true as the default.@PluginBuilderFactory public static <B extends WriterAppender.Builder<B>> B newBuilder()
Copyright © 1999-2021 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.