proyal      2002/07/17 09:03:26

  Added:       logger/src/java/org/apache/avalon/excalibur/logger
                        LoggerLoggerManager.java
  Log:
  LoggerManager implementation that operates off of an existing Logger
  
  Revision  Changes    Path
  1.1                  
jakarta-avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/LoggerLoggerManager.java
  
  Index: LoggerLoggerManager.java
  ===================================================================
  /*
   * Copyright (C) The Apache Software Foundation. All rights reserved.
   *
   * This software is published under the terms of the Apache Software License
   * version 1.1, a copy of which has been included with this distribution in
   * the LICENSE.txt file.
   */
  package org.apache.avalon.excalibur.logger;
  
  import org.apache.avalon.framework.logger.Logger;
  
  /**
   * A LoggerManager that operates off of an existing Logger instance.
   *
   * @author <a href="[EMAIL PROTECTED]">Peter Royal</a>
   */
  public class LoggerLoggerManager implements LoggerManager
  {
      private final Logger logger;
  
      public LoggerLoggerManager( Logger logger )
      {
          this.logger = logger;
      }
  
      public Logger getLoggerForCategory( String categoryName )
      {
          return logger.getChildLogger( categoryName );
      }
  
      public Logger getDefaultLogger()
      {
          return logger;
      }
  }
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to