KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > ibatis > common > logging > jakarta > JakartaCommonsLoggingImpl


1 package com.ibatis.common.logging.jakarta;
2
3 import org.apache.commons.logging.LogFactory;
4 import org.apache.commons.logging.Log;
5
6 public class JakartaCommonsLoggingImpl implements com.ibatis.common.logging.Log {
7
8   private Log log;
9
10   public JakartaCommonsLoggingImpl(Class JavaDoc clazz) {
11     log = LogFactory.getLog(clazz);
12   }
13
14   public boolean isDebugEnabled() {
15     return log.isDebugEnabled();
16   }
17
18   public void error(String JavaDoc s, Exception JavaDoc e) {
19     log.error(s,e);
20   }
21
22   public void debug(String JavaDoc s) {
23     log.debug(s);
24   }
25
26   public void warn(String JavaDoc s) {
27     log.warn(s);
28   }
29
30 }
31
Popular Tags