Log4j Appenders
Appender is an object, it can be used to get logging messages from Logger object and publishing that logging messages to the proffered destinations. Each and Every Appender Object must have at least one Destination object in order to send logging messages. Log4j has provided the following appenders in order to publish logging messages.
- ConsoleAppender
- FileAppender
- JDBCAppender
- JMSAppender
- SocketAppender
- SMTPAppender
- AsyncAppender
- AppenderSkeleton
- DailyRollingFileAppender
- ExternallyRolledFileAppender
- LF5Appender
- NTEventLogAppender
- NullAppender
- RollingFileAppender
- SocketHubAppender
- SyslogAppender
- TelnetAppender
- WriterAppender
If we want to manage all logging messages in a File then we have to use FileAppenders. There are 4 types of File Appenders.
- FileAppender
- RollingFileAppender
- DailyRollingFileAppender
- ExternallyRolledFileAppender
Log4j Appenders