1 55 package org.apache.avalon.framework.logger; 56 57 63 public final class LogKitLogger 64 implements Logger 65 { 66 private final org.apache.log.Logger m_logger; 68 69 74 public LogKitLogger( org.apache.log.Logger logImpl ) 75 { 76 m_logger = logImpl; 77 } 78 79 84 public final void debug( final String message ) 85 { 86 m_logger.debug( message ); 87 } 88 89 95 public final void debug( final String message, final Throwable throwable ) 96 { 97 m_logger.debug( message, throwable ); 98 } 99 100 105 public final boolean isDebugEnabled() 106 { 107 return m_logger.isDebugEnabled(); 108 } 109 110 115 public final void info( final String message ) 116 { 117 m_logger.info( message ); 118 } 119 120 126 public final void info( final String message, final Throwable throwable ) 127 { 128 m_logger.info( message, throwable ); 129 } 130 131 136 public final boolean isInfoEnabled() 137 { 138 return m_logger.isInfoEnabled(); 139 } 140 141 146 public final void warn( final String message ) 147 { 148 m_logger.warn( message ); 149 } 150 151 157 public final void warn( final String message, final Throwable throwable ) 158 { 159 m_logger.warn( message, throwable ); 160 } 161 162 167 public final boolean isWarnEnabled() 168 { 169 return m_logger.isWarnEnabled(); 170 } 171 172 177 public final void error( final String message ) 178 { 179 m_logger.error( message ); 180 } 181 182 188 public final void error( final String message, final Throwable throwable ) 189 { 190 m_logger.error( message, throwable ); 191 } 192 193 198 public final boolean isErrorEnabled() 199 { 200 return m_logger.isErrorEnabled(); 201 } 202 203 208 public final void fatalError( final String message ) 209 { 210 m_logger.fatalError( message ); 211 } 212 213 219 public final void fatalError( final String message, final Throwable throwable ) 220 { 221 m_logger.fatalError( message, throwable ); 222 } 223 224 229 public final boolean isFatalErrorEnabled() 230 { 231 return m_logger.isFatalErrorEnabled(); 232 } 233 234 242 public final Logger getChildLogger( final String name ) 243 { 244 return new LogKitLogger( m_logger.getChildLogger( name ) ); 245 } 246 } 247 | Popular Tags |