Show Table of Contents
12.2. The Log4j Service
The
Log4jService MBean configures the Apache log4j system. JBoss uses the log4j framework as its internal logging API.
- ConfigurationURL: The URL for the log4j configuration file. This can refer to either a XML document parsed by the
org.apache.log4j.xml.DOMConfiguratoror a Java properties file parsed by theorg.apache.log4j.PropertyConfigurator. The type of the file is determined by the URL content type, or if this is null, the file extension. The default setting ofresource:log4j.xmlrefers to theconf/log4j.xmlfile of the active server configuration file set. - RefreshPeriod: The time in seconds between checks for changes in the log4 configuration specified by the
ConfigurationURLattribute. The default value is 60 seconds. - CatchSystemErr: This boolean flag if true, indicates if the
System.errstream should be redirected onto a log4j category calledSTDERR. The default is true. - CatchSystemOut: This boolean flag if true, indicates if the
System.outstream should be redirected onto a log4j category calledSTDOUT. The default is true. - Log4jQuietMode: This boolean flag if true, sets the
org.apache.log4j.helpers.LogLog.setQuiteMode. As of log4j1.2.8 this needs to be set to avoid a possible deadlock on exception at the appender level. See bug#696819.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.