|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.geronimo.system.logging.log4j.Log4jService
A Log4j logging service.
Field Summary | |
static org.apache.geronimo.gbean.GBeanInfo |
GBEAN_INFO
|
Constructor Summary | |
Log4jService(String rootLoggerLevel,
String configurationFile,
int refreshPeroid,
ServerInfo serverInfo)
Construct a Log4jService . |
Method Summary | |
void |
doFail()
|
void |
doStart()
|
void |
doStop()
|
String |
getConfigurationFile()
Get the logging configuration URL. |
static org.apache.geronimo.gbean.GBeanInfo |
getGBeanInfo()
|
String |
getLoggerLevel(String logger)
Gets the level of the logger of the give name. |
int |
getRefreshPeriod()
Get the refresh period. |
String |
getRootLoggerLevel()
Gets the level of the root logger. |
void |
reconfigure()
Force the logging system to reconfigure. |
void |
setConfigurationFile(String configurationFile)
Set the logging configuration URL. |
void |
setLoggerLevel(String logger,
String level)
Sets the level for a logger of the give name. |
void |
setRefreshPeriod(int period)
Set the refresh period. |
void |
setRootLoggerLevel(String level)
Sets the level of the root logger. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
Constructor Detail |
public Log4jService(String rootLoggerLevel, String configurationFile, int refreshPeroid, ServerInfo serverInfo)
Log4jService
.
configurationFile
- The log4j configuration file.refreshPeroid
- The refresh refreshPeroid (in seconds).Method Detail |
public String getRootLoggerLevel()
public void setRootLoggerLevel(String level)
level
- The level to change the logger to.public String getLoggerLevel(String logger)
logger
- The logger to inspect.public void setLoggerLevel(String logger, String level)
logger
- The logger to change levellevel
- The level to change the logger to.public int getRefreshPeriod()
public void setRefreshPeriod(int period)
period
- the refresh period (in seconds)
IllegalArgumentException
- if refresh period is <= 0public String getConfigurationFile()
public void setConfigurationFile(String configurationFile)
configurationFile
- the logging configuration filepublic void reconfigure()
public void doStart()
doStart
in interface org.apache.geronimo.gbean.GBeanLifecycle
public void doStop()
doStop
in interface org.apache.geronimo.gbean.GBeanLifecycle
public void doFail()
doFail
in interface org.apache.geronimo.gbean.GBeanLifecycle
public static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |