|
||||||||||
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(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(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(String prefix)
DefaultLoggerManager
. .
Method Detail |
---|
public void enableLogging(Logger logger)
enableLogging
in interface LogEnabled
logger
- the loggerpublic final Logger getLoggerForCategory(String categoryName)
getLoggerForCategory
in interface LoggerManager
public final Logger getDefaultLogger()
getDefaultLogger
in interface LoggerManager
public final void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
context
- The context object.
ContextException
- if the context is malformedpublic final void configure(Configuration configuration) throws ConfigurationException
configure
in interface Configurable
configuration
- The configuration object.
ConfigurationException
- if the configuration is malformedpublic void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public void dispose()
dispose
in interface org.apache.avalon.framework.activity.Disposable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |