|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Log4jServiceMBean
MBean interface.
Field Summary | |
---|---|
static javax.management.ObjectName |
OBJECT_NAME
The default object name |
static String |
RECONFIGURE_NOTIFICATION_TYPE
Notification type used to indicate a log4j reconfiguration |
Fields inherited from interface org.jboss.system.ServiceMBean |
---|
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Method Summary | |
---|---|
boolean |
getCatchSystemErr()
|
boolean |
getCatchSystemOut()
|
URL |
getConfigurationURL()
|
boolean |
getLog4jQuietMode()
|
String |
getLoggerLevel(String name)
Gets the level of the logger of the give name. |
int |
getRefreshPeriod()
|
void |
reconfigure()
Force the logging system to reconfigure. |
void |
reconfigure(String url)
Hack to reconfigure and change the URL. |
void |
setCatchSystemErr(boolean flag)
The catch System.err flag. |
void |
setCatchSystemOut(boolean flag)
The catch System.out flag. |
void |
setConfigurationURL(URL url)
The Log4j configuration URL. |
void |
setLog4jQuietMode(boolean flag)
The org.apache.log4j.helpers.LogLog.setQuietMode flag |
void |
setLoggerLevel(String name,
String levelName)
Sets the level for a logger of the give name. |
void |
setLoggerLevels(String list,
String levelName)
Sets the levels of each logger specified by the given comma seperated list of logger names. |
void |
setRefreshPeriod(int refreshPeriod)
The refresh period. |
Methods inherited from interface org.jboss.system.ServiceMBean |
---|
getName, getState, getStateString, jbossInternalLifecycle |
Methods inherited from interface org.jboss.system.Service |
---|
create, destroy, start, stop |
Field Detail |
---|
static final javax.management.ObjectName OBJECT_NAME
static final String RECONFIGURE_NOTIFICATION_TYPE
Method Detail |
---|
void setCatchSystemOut(boolean flag)
flag
- True to enable, false to disable.boolean getCatchSystemOut()
void setCatchSystemErr(boolean flag)
flag
- True to enable, false to disable.boolean getCatchSystemErr()
void setLog4jQuietMode(boolean flag)
boolean getLog4jQuietMode()
void setRefreshPeriod(int refreshPeriod)
int getRefreshPeriod()
void setConfigurationURL(URL url)
URL getConfigurationURL()
void setLoggerLevel(String name, String levelName)
Values are trimmed before used.
name
- The name of the logger to change levellevelName
- The name of the level to change the logger to.void setLoggerLevels(String list, String levelName)
list
- A comma seperated list of logger names.levelName
- The name of the level to change the logger to.setLoggerLevel(java.lang.String, java.lang.String)
String getLoggerLevel(String name)
name
- The name of the logger to inspect.void reconfigure() throws IOException
IOException
void reconfigure(String url) throws IOException, MalformedURLException
url
- The new configuration url
IOException
MalformedURLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |