001: /*
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */
017: package org.apache.jetspeed.container.services.log;
018:
019: import org.apache.pluto.services.log.Logger;
020: import org.apache.commons.logging.Log;
021:
022: /**
023: * ContainerLoggerAdaptor
024: *
025: * @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
026: * @version $Id: ContainerLoggerAdaptor.java 516448 2007-03-09 16:25:47Z ate $
027: */
028: public class ContainerLoggerAdaptor implements Logger {
029: private Log log = null;
030:
031: public ContainerLoggerAdaptor(Log log) {
032: this .log = log;
033: }
034:
035: /* (non-Javadoc)
036: * @see org.apache.pluto.services.log.Logger#isDebugEnabled()
037: */
038: public boolean isDebugEnabled() {
039: return log.isDebugEnabled();
040: }
041:
042: /* (non-Javadoc)
043: * @see org.apache.pluto.services.log.Logger#isInfoEnabled()
044: */
045: public boolean isInfoEnabled() {
046: return log.isInfoEnabled();
047: }
048:
049: /* (non-Javadoc)
050: * @see org.apache.pluto.services.log.Logger#isWarnEnabled()
051: */
052: public boolean isWarnEnabled() {
053: return log.isWarnEnabled();
054: }
055:
056: /* (non-Javadoc)
057: * @see org.apache.pluto.services.log.Logger#isErrorEnabled()
058: */
059: public boolean isErrorEnabled() {
060: return log.isErrorEnabled();
061: }
062:
063: /* (non-Javadoc)
064: * @see org.apache.pluto.services.log.Logger#debug(java.lang.String)
065: */
066: public void debug(String aMessage) {
067: log.debug(aMessage);
068: }
069:
070: /* (non-Javadoc)
071: * @see org.apache.pluto.services.log.Logger#debug(java.lang.String, java.lang.Throwable)
072: */
073: public void debug(String aMessage, Throwable aThrowable) {
074: log.debug(aMessage, aThrowable);
075: }
076:
077: /* (non-Javadoc)
078: * @see org.apache.pluto.services.log.Logger#info(java.lang.String)
079: */
080: public void info(String aMessage) {
081: log.info(aMessage);
082: }
083:
084: /* (non-Javadoc)
085: * @see org.apache.pluto.services.log.Logger#warn(java.lang.String)
086: */
087: public void warn(String aMessage) {
088: log.warn(aMessage);
089: }
090:
091: /* (non-Javadoc)
092: * @see org.apache.pluto.services.log.Logger#error(java.lang.String)
093: */
094: public void error(String aMessage) {
095: log.error(aMessage);
096: }
097:
098: /* (non-Javadoc)
099: * @see org.apache.pluto.services.log.Logger#error(java.lang.String, java.lang.Throwable)
100: */
101: public void error(String aMessage, Throwable aThrowable) {
102: log.error(aMessage, aThrowable);
103: }
104:
105: /* (non-Javadoc)
106: * @see org.apache.pluto.services.log.Logger#error(java.lang.Throwable)
107: */
108: public void error(Throwable aThrowable) {
109: log.error(aThrowable);
110: }
111:
112: }
|