org.apache.avalon.excalibur.logger
Class Log4JConfLoggerManager

java.lang.Object
  extended by org.apache.avalon.excalibur.logger.AbstractLoggerManager
      extended by org.apache.avalon.excalibur.logger.Log4JLoggerManager
          extended by org.apache.avalon.excalibur.logger.Log4JConfLoggerManager
All Implemented Interfaces:
LoggerManager, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.logger.LogEnabled

public class Log4JConfLoggerManager
extends Log4JLoggerManager
implements org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.context.Contextualizable

A LoggerManager for Log4j that will configure the Log4j subsystem using specified configuration.

Version:
$Revision: 1.8 $ $Date: 2004/05/04 11:14:28 $
Author:
Avalon Development Team

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
Log4JConfLoggerManager()
           
Log4JConfLoggerManager(java.lang.String prefix, java.lang.String switchToCategory)
           
 
Method Summary
 void configure(org.apache.avalon.framework.configuration.Configuration configuration)
           
 void contextualize(org.apache.avalon.framework.context.Context context)
           
static Log4JConfLoggerManager newInstance(java.lang.String prefix, java.lang.String switchToCategory)
          Work around a weird compilation problem.
 
Methods inherited from class org.apache.avalon.excalibur.logger.Log4JLoggerManager
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

Log4JConfLoggerManager

public Log4JConfLoggerManager(java.lang.String prefix,
                              java.lang.String switchToCategory)

Log4JConfLoggerManager

public Log4JConfLoggerManager()
Method Detail

contextualize

public void contextualize(org.apache.avalon.framework.context.Context context)
                   throws org.apache.avalon.framework.context.ContextException
Specified by:
contextualize in interface org.apache.avalon.framework.context.Contextualizable
Throws:
org.apache.avalon.framework.context.ContextException

newInstance

public static Log4JConfLoggerManager newInstance(java.lang.String prefix,
                                                 java.lang.String switchToCategory)
Work around a weird compilation problem. Can not call the constructor from fortress/ContextManager, get a file org\apache\log4j\spi\LoggerRepository.class not found new Log4JConfLoggerManager( lmDefaultLoggerName, lmLoggerName );


configure

public void configure(org.apache.avalon.framework.configuration.Configuration configuration)
               throws org.apache.avalon.framework.configuration.ConfigurationException
Specified by:
configure in interface org.apache.avalon.framework.configuration.Configurable
Throws:
org.apache.avalon.framework.configuration.ConfigurationException


Copyright © 1997-2008 Apache Software Foundation. All Rights Reserved.