net.sf.mmapps.commons.logging.impl
Class MMBase18Logger

java.lang.Object
  extended bynet.sf.mmapps.commons.logging.impl.MMBase17Logger
      extended bynet.sf.mmapps.commons.logging.impl.MMBase18Logger
All Implemented Interfaces:
org.apache.commons.logging.Log

public class MMBase18Logger
extends MMBase17Logger

Adaptor class to convert jakarta-commons Log calls to MMBase 1.8 Logger calls.

This class extends MMBase17Logger to override the methods that contain a Throwable as second argument since MMBase 1.8 supports those methods

Author:
Kees Jongenburger

Field Summary
 
Fields inherited from class net.sf.mmapps.commons.logging.impl.MMBase17Logger
logger
 
Constructor Summary
(package private) MMBase18Logger(org.mmbase.util.logging.Logger logger)
          creates a new adaptor
 
Method Summary
 void debug(java.lang.Object object, java.lang.Throwable throwable)
          calls Logger.debug(java.lang.Object, java.lang.Throwable)
 void error(java.lang.Object object, java.lang.Throwable throwable)
          calls Logger.error(java.lang.Object, java.lang.Throwable)
 void fatal(java.lang.Object object, java.lang.Throwable throwable)
          calls Logger.fatal(java.lang.Object, java.lang.Throwable)
 void info(java.lang.Object object, java.lang.Throwable throwable)
          calls Logger.info(java.lang.Object, java.lang.Throwable)
 void trace(java.lang.Object object, java.lang.Throwable throwable)
          calls Logger.trace(java.lang.Object, java.lang.Throwable)
 void warn(java.lang.Object object, java.lang.Throwable throwable)
          calls Logger.warn(java.lang.Object, java.lang.Throwable)
 
Methods inherited from class net.sf.mmapps.commons.logging.impl.MMBase17Logger
debug, error, fatal, info, isDebugEnabled, isErrorEnabled, isFatalEnabled, isInfoEnabled, isTraceEnabled, isWarnEnabled, trace, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MMBase18Logger

MMBase18Logger(org.mmbase.util.logging.Logger logger)
creates a new adaptor

Parameters:
logger - the logger to use
Method Detail

debug

public void debug(java.lang.Object object,
                  java.lang.Throwable throwable)
calls Logger.debug(java.lang.Object, java.lang.Throwable)

Specified by:
debug in interface org.apache.commons.logging.Log
Overrides:
debug in class MMBase17Logger

error

public void error(java.lang.Object object,
                  java.lang.Throwable throwable)
calls Logger.error(java.lang.Object, java.lang.Throwable)

Specified by:
error in interface org.apache.commons.logging.Log
Overrides:
error in class MMBase17Logger

fatal

public void fatal(java.lang.Object object,
                  java.lang.Throwable throwable)
calls Logger.fatal(java.lang.Object, java.lang.Throwable)

Specified by:
fatal in interface org.apache.commons.logging.Log
Overrides:
fatal in class MMBase17Logger

info

public void info(java.lang.Object object,
                 java.lang.Throwable throwable)
calls Logger.info(java.lang.Object, java.lang.Throwable)

Specified by:
info in interface org.apache.commons.logging.Log
Overrides:
info in class MMBase17Logger

trace

public void trace(java.lang.Object object,
                  java.lang.Throwable throwable)
calls Logger.trace(java.lang.Object, java.lang.Throwable)

Specified by:
trace in interface org.apache.commons.logging.Log
Overrides:
trace in class MMBase17Logger

warn

public void warn(java.lang.Object object,
                 java.lang.Throwable throwable)
calls Logger.warn(java.lang.Object, java.lang.Throwable)

Specified by:
warn in interface org.apache.commons.logging.Log
Overrides:
warn in class MMBase17Logger


Copyright © 2003-2004 mmapps. All Rights Reserved.