org.apache.commons.cactus.util.log
Class LogService

java.lang.Object
  |
  +--org.apache.commons.cactus.util.log.LogService

public class LogService
extends java.lang.Object

Logging service acting as a wrapper around the Jakarta Log4j logging framework.


Method Summary
static LogService getInstance()
           
 Log getLog(java.lang.String theCategoryName)
           
 void init(java.lang.String theFileName)
          Initialize the logging system.
 boolean isInitialized()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static LogService getInstance()
Returns:
the unique singleton instance

init

public void init(java.lang.String theFileName)
Initialize the logging system. Need to be called once before calling getLog().
Parameters:
theFileName - the file name (Ex: "/log_client.properties")

getLog

public Log getLog(java.lang.String theCategoryName)
Parameters:
theCategoryName - the category's name. Usually, it is the full name of the class being logged, including the package name
Returns:
the Log instance associated with the specified category name

isInitialized

public boolean isInitialized()
Returns:
true if the logging system has already been initialized.


Copyright © 2000-2001 Apache Software Foundation. All Rights Reserved.