JBoss

JMX MBean View

Back to Agent View Refresh MBean View

MBean description:

This MBean allows to get and set Log4j specific options. See also resource:log4j.xml

List of MBean attributes:

Name Type Access Value Description
Name java.lang.String R Log4jService The class name of the MBean
State int R 3 The status of the MBean
StateString java.lang.String R Started The status of the MBean in text form
ConfigurationURL java.net.URL RW The URL of the log4j.xml config file.
CatchSystemErr boolean RW True False Should data writen to standard error be caught and integrated into the log output.
CatchSystemOut boolean RW True False Should data writen to standard output be caught and integrated into the log output.
Log4jQuietMode boolean RW True False Sets the log4j quite mode. For log4j 1.2.8 this must stay on true.
RefreshPeriod int RW The time in seconds between checking for new config.

List of MBean operations:


java.lang.String getLoggerLevel()

Displays the log level of a given logger.

Param ParamType ParamValue ParamDescription
logger java.lang.String The name of the logger to display.

void setLoggerLevel()

Sets the log level for a given logger.

Param ParamType ParamValue ParamDescription
logger java.lang.String The name of the logger to set.
level java.lang.String The log level to set.

void setLoggerLevels()

Sets the levels of each logger specified by the given comma seperated list of logger names.

Param ParamType ParamValue ParamDescription
loggers java.lang.String The list of loggers
level java.lang.String The log level to set

void reconfigure()

Force the logging system to reconfigure.


void reconfigure()

Force the logging system to reconfigure with the given URL.

Param ParamType ParamValue ParamDescription
url java.lang.String The url for the new configuration.

void create()

Standard MBean lifecycle method


void start()

The start lifecycle operation


void stop()

The stop lifecycle operation


void destroy()

The destroy lifecycle operation


void jbossInternalLifecycle()

The detyped lifecycle operation (for internal use only)

Param ParamType ParamValue ParamDescription
method java.lang.String The lifecycle operation