-
Book Overview & Buying
-
Table Of Contents
JBoss AS 5 Development
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.
An appender is an output destination of log messages. In your configuration file, you register all the available appenders to your application. In the default configuration file, you have two appenders enabled—the console file appender that outputs information to the AS command window (or wherever you have redirected the stout stream), and the server...
Change the font size
Change margin width
Change background colour