Home » geronimo-2.2-source-release » org.apache.geronimo.system.logging.log4j » [javadoc | source]
org.apache.geronimo.system.logging.log4j
public class: Log4jService [javadoc | source]
java.lang.Object
   org.apache.geronimo.system.logging.log4j.Log4jService

All Implemented Interfaces:
    GBeanLifecycle, SystemLog

A Log4j logging service.
Field Summary
public static final  GBeanInfo GBEAN_INFO     
Constructor:
 public Log4jService(String configurationFile,
    int refreshPeriod,
    ServerInfo serverInfo) 
    Construct a Log4jService.
    Parameters:
    configurationFile - The log4j configuration file.
    refreshPeriod - The refresh refreshPeriod (in seconds).
Method from org.apache.geronimo.system.logging.log4j.Log4jService Summary:
doFail,   doStart,   doStop,   getConfigFileName,   getConfiguration,   getGBeanInfo,   getLogFileNames,   getLoggerEffectiveLevel,   getLoggerLevel,   getMatchingItems,   getRefreshPeriodSeconds,   getRootLoggerLevel,   reconfigure,   setConfigFileName,   setConfiguration,   setLoggerLevel,   setRefreshPeriodSeconds,   setRootLoggerLevel
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.geronimo.system.logging.log4j.Log4jService Detail:
 public  void doFail() 
 public  void doStart() 
 public synchronized  void doStop() 
 public synchronized String getConfigFileName() 
    Get the logging configuration URL.
 public synchronized String getConfiguration() 
    Get the content of logging configuration file.
 public static GBeanInfo getGBeanInfo() 
 public synchronized String[] getLogFileNames() 
 public String getLoggerEffectiveLevel(String logger) 
    Gets the level of the logger of the give name.
 public String getLoggerLevel(String logger) 
    Gets the level of the logger of the give name.
 public SearchResults getMatchingItems(String logFile,
    Integer firstLine,
    Integer lastLine,
    String minLevel,
    String text,
    int maxResults,
    boolean includeStackTraces) 
 public synchronized int getRefreshPeriodSeconds() 
    Get the refresh period.
 public synchronized String getRootLoggerLevel() 
    Gets the level of the root logger.
 public  void reconfigure() 
    Force the logging system to reconfigure.
 public synchronized  void setConfigFileName(String configurationFile) 
    Set the logging configuration URL.
 public synchronized  void setConfiguration(String configuration) throws IOException 
    Overwrites the content of logging configuration file.
 public  void setLoggerLevel(String logger,
    String level) 
    Sets the level for a logger of the give name.
 public synchronized  void setRefreshPeriodSeconds(int period) 
    Set the refresh period.
 public synchronized  void setRootLoggerLevel(String level) 
    Sets the level of the root logger.