Package org.apache.logging.log4j.core.appender
@Export
@Version("2.20.3")
package org.apache.logging.log4j.core.appender
Log4j 2 Appenders.
-
ClassDescriptionAbstract base class for Appenders.AbstractAppender.Builder<B extends AbstractAppender.Builder<B>>Subclasses can extend this abstract Builder.AbstractFileAppender<M extends OutputStreamManager>Abstract File Appender.AbstractFileAppender.Builder<B extends AbstractFileAppender.Builder<B>>Builds FileAppender instances.Abstract base class used to register managers.Implementations should extend this class for passing data between the getManager method and the manager factory class.AbstractOutputStreamAppender<M extends OutputStreamManager>Appends log events as bytes to a byte output stream.Subclasses can extend this abstract Builder.AbstractWriterAppender<M extends WriterManager>Appends log events as strings to a writer.Thrown from an appender when a log event could not be written.A deferred plugin for appenders.Appends to one or more Appenders asynchronously.AsyncAppender.Builder<B extends AsyncAppender.Builder<B>>Factory Data that carries a configuration.Appends log events to
System.out
orSystem.err
using a layout specified by the user.ConsoleAppender.Builder<B extends ConsoleAppender.Builder<B>>Builds ConsoleAppender instances.Enumeration of console destinations.No-Operation Appender that counts events.The defaultErrorHandler
implementation falling back toStatusLogger
.The FailoverAppender will capture exceptions in an Appender and then route the event to a different appender.The array of failover Appenders.File Appender.FileAppender.Builder<B extends FileAppender.Builder<B>>Builds FileAppender instances.Manages actual File I/O for File Appenders.Sends log events over HTTP.HttpAppender.Builder<B extends HttpAppender.Builder<B>>Builds HttpAppender instances.ManagerFactory<M,T> Creates Manager objects.Memory Mapped File Appender.Builds RandomAccessFileAppender instances.Extends OutputStreamManager but instead of using a buffered output stream, this class maps a region of a file into memory and writes to this memory region.An Appender that ignores log events.Appends log events to a given output stream using a layout.OutputStreamAppender.Builder<B extends OutputStreamAppender.Builder<B>>Builds OutputStreamAppender instances.Manages an OutputStream so that it can be shared by multiple Appenders and will allow appenders to reconfigure without requiring a new stream.File Appender.Builds RandomAccessFileAppender instances.Extends OutputStreamManager but instead of using a buffered output stream, this class uses aByteBuffer
and aRandomAccessFile
to do the I/O.An appender that writes to files and can roll over at intervals.RollingFileAppender.Builder<B extends RollingFileAppender.Builder<B>>Builds FileAppender instances.An appender that writes to random access files and can roll over at intervals.Builds an appender.Send an e-mail when a specific logging event occurs, typically on errors or fatal errors.An Appender that delivers events over socket connections.SocketAppender.AbstractBuilder<B extends SocketAppender.AbstractBuilder<B>>Subclasses can extend this abstract Builder.Builds a SocketAppender.The Syslog Appender.SyslogAppender.Builder<B extends SyslogAppender.Builder<B>>Wraps messages that are formatted according to RFC 5425.Appends log events to aWriter
.WriterAppender.Builder<B extends WriterAppender.Builder<B>>Builds WriterAppender instances.Manages a Writer so that it can be shared by multiple Appenders and will allow appenders to reconfigure without requiring a new writer.