Logging to a Seperate Server
The log4j framework has a number of appenders that allow you to send log message to an external server. Common appenders include:
org.apache.log4j.net.JMSAppender
org.apache.log4j.net.SMTPAppender
org.apache.log4j.net.SocketAppender
org.apache.log4j.net.SyslogAppender
org.apache.log4j.net.TelnetAppender
Documentation on configuration of these appenders can be found at http://logging.apache.org/. JBoss has a Log4jSocketServer service
that allows for easy use of the SocketAppender. See Log4jSocketServer for
an example of how to setup and use this service to collect log output from
one or more log4j clients.
Referenced by:
Comments