JBoss.org Community Documentation

10.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.DOMConfigurator or a Java properties file parsed by the org.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 of resource:log4j.xml refers to the conf/log4j.xml file of the active server configuration file set.

  • RefreshPeriod : The time in seconds between checks for changes in the log4 configuration specified by the ConfigurationURL attribute. The default value is 60 seconds.

  • CatchSystemErr : This boolean flag if true, indicates if the System.err stream should be redirected onto a log4j category called STDERR. The default is true.

  • CatchSystemOut : This boolean flag if true, indicates if the System.out stream should be redirected onto a log4j category called STDOUT. 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.