Sets up a ThrowableListener to adapt unhandled throwables to a logger.
Installs LoggerStream adapters for System.out and System.err to catch and redirect calls to Log4j.
| Field Summary | |
|---|---|
| static boolean |
Default flag to enable/disable cacthing System.err. |
| static boolean |
Default flag to enable/disable cacthing System.out. |
| static String |
The default url for the configuration file. |
| Fields inherited from org.jboss.systemServiceMBeanSupport |
|---|
| Constructor Summary |
|---|
|
Uses defaults. |
|
No description provided. |
|
No description provided. |
|
No description provided. |
|
No description provided. |
| Method Summary | |
|---|---|
| protected void |
No description provided. |
| protected void |
No description provided. |
| boolean |
Get the catch System.err flag. |
| boolean |
Get the catch System.out flag. |
| URL |
Get the Log4j configuration URL. |
| boolean |
Get the org.apache.log4j.helpers.LogLog.setQuietMode flag |
| String |
Gets the level of the logger of the give name. |
| protected ObjectName |
No description provided. |
| int |
Get the refresh period. |
| void |
Force the logging system to reconfigure. |
| void |
Hack to reconfigure and change the URL. |
| void |
Set the catch System.err flag. |
| void |
Set the catch System.out flag. |
| void |
Set the Log4j configuration URL. |
| void |
Set the org.apache.log4j.helpers.LogLog.setQuietMode flag |
| void |
Sets the level for a logger of the give name. |
| void |
Sets the levels of each logger specified by the given comma seperated list of logger names. |
| void |
Set the refresh period. |
| protected void |
No description provided. |
| protected void |
No description provided. |
| Methods inherited from javax.managementMBeanRegistration |
|---|
| Methods inherited from javax.managementNotificationEmitter |
|---|
| Methods inherited from java.langObject |
|---|
| Methods inherited from org.jboss.systemServiceMBean |
|---|
public static
boolean
CATCH_SYSTEM_ERR
public static
boolean
CATCH_SYSTEM_OUT
public
boolean
getCatchSystemErr
(
)
public
boolean
getCatchSystemOut
(
)
public
boolean
getLog4jQuietMode
(
)
public
int
getRefreshPeriod
(
)
public
void
setCatchSystemErr
(
boolean
flag
)
public
void
setCatchSystemOut
(
boolean
flag
)
public
void
setLog4jQuietMode
(
boolean
flag
)
Values are trimmed before used.
public
void
setRefreshPeriod
(
int
refreshPeriod
)