org.apache.cocoon.core.logging
Class CocoonLogKitLoggerManager

java.lang.Object
  extended byorg.apache.avalon.excalibur.logger.AbstractLoggerManager
      extended byorg.apache.avalon.excalibur.logger.LogKitLoggerManager
          extended byorg.apache.cocoon.core.logging.CocoonLogKitLoggerManager
All Implemented Interfaces:
Configurable, Contextualizable, Disposable, LogEnabled, LoggerManager, PerRequestLoggerManager

public class CocoonLogKitLoggerManager
extends LogKitLoggerManager
implements PerRequestLoggerManager

This is an extension of the LoggerManager. It can be used to initialize a logging context on a per thread basis. This allows the logging implementation to access and log information about the current request.

Since:
2.2
Version:
$Id: CocoonLogKitLoggerManager.java 312962 2005-10-11 21:39:38Z sylvain $

Field Summary
 
Fields inherited from class org.apache.avalon.excalibur.logger.AbstractLoggerManager
m_loggers, m_prefix
 
Fields inherited from interface org.apache.avalon.excalibur.logger.LoggerManager
ROLE
 
Constructor Summary
CocoonLogKitLoggerManager()
           
 
Method Summary
 void cleanPerRequestLoggingContext(Object ctxMap)
          Clean up the logging context.
 Object initializePerRequestLoggingContext(Environment env)
          Initialize the context for logging.
 
Methods inherited from class org.apache.avalon.excalibur.logger.LogKitLoggerManager
configure, contextualize, dispose, doGetLoggerForCategory
 
Methods inherited from class org.apache.avalon.excalibur.logger.AbstractLoggerManager
enableLogging, getDefaultLogger, getLogger, getLoggerForCategory, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.avalon.excalibur.logger.LoggerManager
getDefaultLogger, getLoggerForCategory
 

Constructor Detail

CocoonLogKitLoggerManager

public CocoonLogKitLoggerManager()
Method Detail

initializePerRequestLoggingContext

public Object initializePerRequestLoggingContext(Environment env)
Description copied from interface: PerRequestLoggerManager
Initialize the context for logging.

Specified by:
initializePerRequestLoggingContext in interface PerRequestLoggerManager
See Also:
PerRequestLoggerManager.initializePerRequestLoggingContext(org.apache.cocoon.environment.Environment)

cleanPerRequestLoggingContext

public void cleanPerRequestLoggingContext(Object ctxMap)
Description copied from interface: PerRequestLoggerManager
Clean up the logging context.

Specified by:
cleanPerRequestLoggingContext in interface PerRequestLoggerManager
See Also:
PerRequestLoggerManager.cleanPerRequestLoggingContext(java.lang.Object)


Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.