O'Reilly logo

JBoss AS 5 Development by Francesco Marchioni

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required