Configuring logging services

Logging messages is a common requirement in all server applications. Many developers interact during the creation of applications, and it is likely that every user will approach logging in their own style. There is also the burden of adding/removing logging information when you shift from early stage development to production.

Log4j is a reliable, fast, and extensible framework for handling log messages. The configuration file of log4j is located at JBOSS_HOME/server/xxx/conf/ jboss-log4j.xml.

The three main components of log4j infrastructure are appenders, layouts, and categories. Let's see them in detail.

Appenders

An appender is an output destination of log messages. In your configuration file, you register all the ...

Get JBoss AS 5 Development now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.