|
|
The Appender controls how the logging is output.
The Appenders available are (descriptions borrowed from the log4j API
http://jakarta.apache.org/log4j/docs/api/index.html):
-
ConsoleAppender: appends log events to
System.out or System.err using a layout specified by the user. The
default target is System.out.
-
DailyRollingFileAppender extends FileAppender
so that the underlying file is rolled over at a user chosen frequency.
-
FileAppender appends log events to a file.
-
RollingFileAppender extends FileAppender to
backup the log files when they reach a certain size.
-
WriterAppender appends log events to a Writer
or an OutputStream depending on the user's choice.
-
SMTPAppender sends an e-mail when a specific
logging event occurs, typically on errors or fatal errors.
-
SocketAppender sends LoggingEvent objects to a
remote a log server, usually a SocketNode.
-
SocketHubAppender sends LoggingEvent objects
to a set of remote log servers, usually a SocketNodes
-
SyslogAppendersends messages to a remote
syslog daemon.
-
TelnetAppender is a log4j appender that
specializes in writing to a read-only socket.
One may also implement the Appender
interface to create ones own ways of outputting log statements.
|