org.codehaus.spice.loggerstore.stores
Class Log4JLoggerStore

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

public class Log4JLoggerStore
extends AbstractLoggerStore

Log4JLoggerStore extends AbstractLoggerStore to provide the implementation specific to the Log4J logger.

Author:
Mauro Talevi

Constructor Summary
Log4JLoggerStore(org.w3c.dom.Element resource)
          Creates a Log4JLoggerStore using the configuration resource
Log4JLoggerStore(InputStream resource)
          Creates a Log4JLoggerStore using the configuration resource
Log4JLoggerStore(Properties resource)
          Creates a Log4JLoggerStore using the configuration resource
 
Method Summary
 void close()
          Closes the LoggerStore and shuts down the logger hierarchy.
protected  Logger createLogger(String categoryName)
          Creates new Log4JLogger 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

Log4JLoggerStore

public Log4JLoggerStore(org.w3c.dom.Element resource)
                 throws Exception
Creates a Log4JLoggerStore using the configuration resource

Parameters:
resource - the Element encoding the configuration resource
Throws:
Exception - if fails to create or configure Logger

Log4JLoggerStore

public Log4JLoggerStore(InputStream resource)
                 throws Exception
Creates a Log4JLoggerStore using the configuration resource

Parameters:
resource - the InputStream encoding the configuration resource
Throws:
Exception - if fails to create or configure Logger

Log4JLoggerStore

public Log4JLoggerStore(Properties resource)
                 throws Exception
Creates a Log4JLoggerStore using the configuration resource

Parameters:
resource - the Properties encoding the configuration resource
Throws:
Exception - if fails to create or configure Logger
Method Detail

createLogger

protected Logger createLogger(String categoryName)
Creates new Log4JLogger 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.