@Plugin(name="OutputStream", category="Core", elementType="appender", printObject=true) public final class OutputStreamAppender extends AbstractOutputStreamAppender<OutputStreamManager>
Character encoding is handled within the Layout.
Modifier and Type | Class and Description |
---|---|
static class |
OutputStreamAppender.Builder<B extends OutputStreamAppender.Builder<B>>
Builds OutputStreamAppender instances.
|
LifeCycle.State
DEFAULT_STOP_TIMEOUT, DEFAULT_STOP_TIMEUNIT, LOGGER
ELEMENT_TYPE
Modifier and Type | Method and Description |
---|---|
static OutputStreamAppender |
createAppender(Layout<? extends Serializable> layout,
Filter filter,
OutputStream target,
String name,
boolean follow,
boolean ignore)
Creates an OutputStream Appender.
|
static OutputStreamAppender.Builder |
newBuilder() |
append, directEncodeEvent, getImmediateFlush, getManager, start, stop, stop, writeByteArrayToManager
error, error, error, getHandler, getLayout, getName, ignoreExceptions, parseInt, requiresLocation, setHandler, toSerializable, toString
addFilter, getFilter, getPropertyArray, hasFilter, isFiltered, removeFilter
equalsImpl, getState, getStatusLogger, hashCodeImpl, initialize, isInitialized, isStarted, isStarting, isStopped, isStopping, setStarted, setStarting, setState, setStopped, setStopping, stop, stop
@PluginFactory public static OutputStreamAppender createAppender(Layout<? extends Serializable> layout, Filter filter, OutputStream 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
- an output stream.follow
- 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 OutputStreamAppender.Builder 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.