1 19 package org.apache.avalon.excalibur.logger.util; 20 21 import org.apache.avalon.excalibur.logger.LoggerManager; 22 import org.apache.avalon.framework.logger.Logger; 23 24 35 public class LoggerManagerTee extends AvalonTee implements LoggerManager 36 { 37 38 private final LoggerManager m_loggerManager; 39 40 45 public LoggerManagerTee( final LoggerManager loggerManager ) 46 { 47 addTee( loggerManager ); 48 m_loggerManager = loggerManager; 49 } 50 51 54 public Logger getLoggerForCategory( final String categoryName ) 55 { 56 return m_loggerManager.getLoggerForCategory( categoryName ); 57 } 58 59 63 public Logger getDefaultLogger() 64 { 65 return m_loggerManager.getDefaultLogger(); 66 } 67 } 68 | Popular Tags |