1 17 18 package org.apache.avalon.logging.logkit; 19 20 import org.apache.avalon.framework.logger.Logger; 21 22 28 public final class LogKitLogger 29 implements Logger 30 { 31 private final org.apache.log.Logger m_logger; 33 34 39 public LogKitLogger( org.apache.log.Logger logImpl ) 40 { 41 m_logger = logImpl; 42 } 43 44 49 public final void debug( final String message ) 50 { 51 m_logger.debug( message ); 52 } 53 54 60 public final void debug( final String message, final Throwable throwable ) 61 { 62 m_logger.debug( message, throwable ); 63 } 64 65 70 public final boolean isDebugEnabled() 71 { 72 return m_logger.isDebugEnabled(); 73 } 74 75 80 public final void info( final String message ) 81 { 82 m_logger.info( message ); 83 } 84 85 91 public final void info( final String message, final Throwable throwable ) 92 { 93 m_logger.info( message, throwable ); 94 } 95 96 101 public final boolean isInfoEnabled() 102 { 103 return m_logger.isInfoEnabled(); 104 } 105 106 111 public final void warn( final String message ) 112 { 113 m_logger.warn( message ); 114 } 115 116 122 public final void warn( final String message, final Throwable throwable ) 123 { 124 m_logger.warn( message, throwable ); 125 } 126 127 132 public final boolean isWarnEnabled() 133 { 134 return m_logger.isWarnEnabled(); 135 } 136 137 142 public final void error( final String message ) 143 { 144 m_logger.error( message ); 145 } 146 147 153 public final void error( final String message, final Throwable throwable ) 154 { 155 m_logger.error( message, throwable ); 156 } 157 158 163 public final boolean isErrorEnabled() 164 { 165 return m_logger.isErrorEnabled(); 166 } 167 168 173 public final void fatalError( final String message ) 174 { 175 m_logger.fatalError( message ); 176 } 177 178 184 public final void fatalError( final String message, final Throwable throwable ) 185 { 186 m_logger.fatalError( message, throwable ); 187 } 188 189 194 public final boolean isFatalErrorEnabled() 195 { 196 return m_logger.isFatalErrorEnabled(); 197 } 198 199 207 public final Logger getChildLogger( final String name ) 208 { 209 return new LogKitLogger( m_logger.getChildLogger( name ) ); 210 } 211 } 212 | Popular Tags |