org.jcomponent.loggerstore
Interface LoggerStore

All Known Implementing Classes:
AbstractLoggerStore

public interface LoggerStore

LoggerStore represents the logging hierarchy for a Logger, as defined by its configuration.

The LoggerStore has an associated LoggerStoreFactory which also acts as a configurator for the Logger.

Whenever an application has finished using the LoggerStore it will call the close() method indicating that the logger hierarchy should also be shutdown.

Author:
Mauro Talevi, Peter Donald

Method Summary
 void close()
          Closes the LoggerStore and shuts down the logger hierarchy.
 Logger getLogger()
          Retrieves the root Logger from the store.
 Logger getLogger(String categoryName)
          Retrieves a Logger hierarchy from the store for a given category name.
 

Method Detail

getLogger

public Logger getLogger()
                 throws Exception
Retrieves the root Logger from the store.

Returns:
the Logger
Throws:
Exception - if unable to retrieve Logger

getLogger

public Logger getLogger(String categoryName)
                 throws Exception
Retrieves a Logger hierarchy from the store for a given category name.

Parameters:
categoryName - the name of the logger category.
Returns:
the Logger
Throws:
Exception - if unable to retrieve Logger

close

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



Copyright © 2003 The Spice Group. All Rights Reserved.