01: package com.ibatis.common.logging.jakarta;
02:
03: import org.apache.commons.logging.LogFactory;
04: import org.apache.commons.logging.Log;
05:
06: public class JakartaCommonsLoggingImpl implements
07: com.ibatis.common.logging.Log {
08:
09: private Log log;
10:
11: public JakartaCommonsLoggingImpl(Class clazz) {
12: log = LogFactory.getLog(clazz);
13: }
14:
15: public boolean isDebugEnabled() {
16: return log.isDebugEnabled();
17: }
18:
19: public void error(String s, Throwable e) {
20: log.error(s, e);
21: }
22:
23: public void error(String s) {
24: log.error(s);
25: }
26:
27: public void debug(String s) {
28: log.debug(s);
29: }
30:
31: public void warn(String s) {
32: log.warn(s);
33: }
34:
35: }
|