|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.codehaus.spice.loggerstore.stores.AbstractLoggerStore
AbstractLoggerStore is an abstract implementation of LoggerStore for the functionality common to all Loggers.
| Constructor Summary | |
AbstractLoggerStore()
|
|
| Method Summary | |
protected abstract Logger |
createLogger(String name)
Creates new Logger for the given category. |
void |
enableLogging(Logger logger)
Provide a logger. |
Logger |
getLogger()
Retrieves the root Logger from the store. |
Logger |
getLogger(String name)
Retrieves a Logger hierarchy from the store for a given category name. |
protected Logger |
getRootLogger()
Returns the root logger. |
protected void |
setRootLogger(Logger rootLogger)
Sets the root Logger. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.codehaus.spice.loggerstore.LoggerStore |
close |
| Constructor Detail |
public AbstractLoggerStore()
| Method Detail |
public void enableLogging(Logger logger)
enableLogging in interface LogEnabledlogger - the logger
public Logger getLogger()
throws Exception
getLogger in interface LoggerStoreException - if unable to retrieve Logger
public Logger getLogger(String name)
throws Exception
getLogger in interface LoggerStorename - the name of the logger.
Exception - if unable to retrieve Loggerprotected abstract Logger createLogger(String name)
protected final void setRootLogger(Logger rootLogger)
protected final Logger getRootLogger()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||