1 16 package org.apache.cocoon.portal.pluto.service.log; 17 18 import org.apache.avalon.framework.logger.Logger; 19 20 27 public class LoggerImpl 28 implements org.apache.pluto.services.log.Logger { 29 30 31 protected Logger logger; 32 33 34 public LoggerImpl(Logger logger) { 35 this.logger = logger; 36 } 37 38 41 public void debug(String aMessage, Throwable aThrowable) { 42 this.logger.debug(aMessage, aThrowable); 43 } 44 45 48 public void debug(String aMessage) { 49 this.logger.debug(aMessage); 50 } 51 52 55 public void error(String aMessage, Throwable aThrowable) { 56 this.logger.error(aMessage, aThrowable); 57 } 58 59 62 public void info(String aMessage) { 63 this.logger.info(aMessage); 64 } 65 66 69 public boolean isDebugEnabled() { 70 return this.logger.isDebugEnabled(); 71 } 72 73 76 public boolean isErrorEnabled() { 77 return this.logger.isErrorEnabled(); 78 } 79 80 83 public boolean isInfoEnabled() { 84 return this.logger.isInfoEnabled(); 85 } 86 87 90 public boolean isWarnEnabled() { 91 return this.logger.isWarnEnabled(); 92 } 93 94 97 public void warn(String aMessage) { 98 this.logger.warn(aMessage); 99 } 100 101 104 public void error(Throwable throwable) { 105 this.logger.error("Exception", throwable); 106 } 107 108 111 public void error(String aMessage) { 112 this.logger.error(aMessage); 113 } 114 } 115 | Popular Tags |