org.codehaus.spice.loggerstore.stores
Class LogKitLoggerStore

java.lang.Object
  |
  +--org.codehaus.spice.loggerstore.stores.AbstractLoggerStore
        |
        +--org.codehaus.spice.loggerstore.stores.LogKitLoggerStore
All Implemented Interfaces:
LogEnabled, LoggerStore

public class LogKitLoggerStore
extends AbstractLoggerStore

LogKitLoggerStore extends AbstractLoggerStore to provide the implementation specific to the LogKit logger.

Author:
Mauro Talevi

Constructor Summary
LogKitLoggerStore(org.apache.avalon.excalibur.logger.LoggerManager loggerManager, org.apache.avalon.framework.logger.Logger logger, org.apache.avalon.framework.context.Context context, org.apache.avalon.framework.configuration.Configuration configuration)
          Creates a LogKitLoggerStore using the given configuration
 
Method Summary
 void close()
          Closes the LoggerStore and shuts down the logger hierarchy.
protected  Logger createLogger(String name)
          Creates new LogKitLogger for the given category.
 
Methods inherited from class org.codehaus.spice.loggerstore.stores.AbstractLoggerStore
enableLogging, getLogger, getLogger, getRootLogger, setRootLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogKitLoggerStore

public LogKitLoggerStore(org.apache.avalon.excalibur.logger.LoggerManager loggerManager,
                         org.apache.avalon.framework.logger.Logger logger,
                         org.apache.avalon.framework.context.Context context,
                         org.apache.avalon.framework.configuration.Configuration configuration)
                  throws Exception
Creates a LogKitLoggerStore using the given configuration

Parameters:
loggerManager - the LoggerManager used to configure the store
logger - the Logger to logEnable the LoggerManager
context - the Context of the LoggerManager
configuration - the logger configuration
Throws:
Exception - if fails to create or configure Logger
Method Detail

createLogger

protected Logger createLogger(String name)
Creates new LogKitLogger for the given category.

Specified by:
createLogger in class AbstractLoggerStore

close

public void close()
Closes the LoggerStore and shuts down the logger hierarchy.



Copyright © 2003 Codehaus. All Rights Reserved.