The Log4j Service MBean


The Log4j Service MBean

The Log4j Service MBean configures the Apache log4j system. JBoss uses the log4j framework as its internal logging API.

The Log4j Service MBean supports the following attributes:

  • ConfigurationURL This is the URL for the log4j configuration file. It can refer to either an XML document parsed by org.apache.log4j.xml.DOMConfigurator or a Java properties file parsed by org.apache.log4j. PropertyConfigurator. The type of the file is determined by the URL content type, or if that is null, by 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 This is the time in seconds between checks for changes in the log4j configuration specified by the ConfigurationURL attribute. The default value is 60 seconds.

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

  • CatchSystemOut This Boolean flag, if TRue, indicates whether the System.out stream should be redirected onto a log4j category called STDOUT. The default is TRue.

  • Log4jQuietMode This Boolean flag, if TRue, sets org.apache.log4j.helpers.LogLog.setQuiteMode. As of log4j 1.2.8, this needs to be set to avoid a possible deadlock on exception at the appender level. See bug #696819.



JBoss 4. 0(c) The Official Guide
JBoss 4.0 - The Official Guide
ISBN: B003D7JU58
EAN: N/A
Year: 2006
Pages: 137

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net