|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.avalon.excalibur.logger.DefaultLoggerManager
public final class DefaultLoggerManager
This logger manager is a wrapper around all other "real" logger managers. The idea is to have one single configuration file where you can define, which logger manager (Log4J, LogKit etc.) you want to use, so you don't have to hard-code this.
| Field Summary |
|---|
| Fields inherited from interface org.apache.avalon.excalibur.logger.LoggerManager |
|---|
ROLE |
| Constructor Summary | |
|---|---|
DefaultLoggerManager()
Creates a new DefaultLoggerManager. |
|
DefaultLoggerManager(java.lang.String prefix)
Creates a new DefaultLoggerManager. |
|
| Method Summary | |
|---|---|
void |
configure(Configuration configuration)
Reads a configuration object and creates the category mapping. |
void |
contextualize(Context context)
Reads a context object that will be supplied to the logger manager. |
void |
dispose()
|
void |
enableLogging(Logger logger)
Provide a logger. |
Logger |
getDefaultLogger()
Return the default Logger. |
Logger |
getLoggerForCategory(java.lang.String categoryName)
Return the Logger for the specified category. |
void |
service(ServiceManager manager)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultLoggerManager()
DefaultLoggerManager. .
public DefaultLoggerManager(java.lang.String prefix)
DefaultLoggerManager. .
| Method Detail |
|---|
public void enableLogging(Logger logger)
enableLogging in interface LogEnabledlogger - the loggerpublic final Logger getLoggerForCategory(java.lang.String categoryName)
getLoggerForCategory in interface LoggerManagerpublic final Logger getDefaultLogger()
getDefaultLogger in interface LoggerManager
public final void contextualize(Context context)
throws ContextException
contextualize in interface Contextualizablecontext - The context object.
ContextException - if the context is malformed
public final void configure(Configuration configuration)
throws ConfigurationException
configure in interface Configurableconfiguration - The configuration object.
ConfigurationException - if the configuration is malformed
public void service(ServiceManager manager)
throws ServiceException
service in interface ServiceableServiceExceptionpublic void dispose()
dispose in interface Disposable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||