org.codehaus.mojo.pluginsupport.logging
Class DelegatingLog

java.lang.Object
  extended by org.codehaus.mojo.pluginsupport.logging.DelegatingLog
All Implemented Interfaces:
Serializable, Log

public class DelegatingLog
extends Object
implements Log, Serializable

Jakarta Commons Logging Log which delegates to another Log type.

Version:
$Id: DelegatingLog.java 3428 2007-02-27 00:29:22Z user57 $
See Also:
Serialized Form

Constructor Summary
DelegatingLog(String name)
           
 
Method Summary
 void debug(Object object)
           
 void debug(Object object, Throwable throwable)
           
 void error(Object object)
           
 void error(Object object, Throwable throwable)
           
 void fatal(Object object)
           
 void fatal(Object object, Throwable throwable)
           
static Log getDelegate(String name)
           
 void info(Object object)
           
 void info(Object object, Throwable throwable)
           
 boolean isDebugEnabled()
           
 boolean isErrorEnabled()
           
 boolean isFatalEnabled()
           
 boolean isInfoEnabled()
           
 boolean isTraceEnabled()
           
 boolean isWarnEnabled()
           
static void setDelegateType(Class type)
           
 void trace(Object object)
           
 void trace(Object object, Throwable throwable)
           
 void warn(Object object)
           
 void warn(Object object, Throwable throwable)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelegatingLog

public DelegatingLog(String name)
Method Detail

setDelegateType

public static void setDelegateType(Class type)

getDelegate

public static Log getDelegate(String name)

isDebugEnabled

public boolean isDebugEnabled()
Specified by:
isDebugEnabled in interface Log

isErrorEnabled

public boolean isErrorEnabled()
Specified by:
isErrorEnabled in interface Log

isFatalEnabled

public boolean isFatalEnabled()
Specified by:
isFatalEnabled in interface Log

isInfoEnabled

public boolean isInfoEnabled()
Specified by:
isInfoEnabled in interface Log

isTraceEnabled

public boolean isTraceEnabled()
Specified by:
isTraceEnabled in interface Log

isWarnEnabled

public boolean isWarnEnabled()
Specified by:
isWarnEnabled in interface Log

trace

public void trace(Object object)
Specified by:
trace in interface Log

trace

public void trace(Object object,
                  Throwable throwable)
Specified by:
trace in interface Log

debug

public void debug(Object object)
Specified by:
debug in interface Log

debug

public void debug(Object object,
                  Throwable throwable)
Specified by:
debug in interface Log

info

public void info(Object object)
Specified by:
info in interface Log

info

public void info(Object object,
                 Throwable throwable)
Specified by:
info in interface Log

warn

public void warn(Object object)
Specified by:
warn in interface Log

warn

public void warn(Object object,
                 Throwable throwable)
Specified by:
warn in interface Log

error

public void error(Object object)
Specified by:
error in interface Log

error

public void error(Object object,
                  Throwable throwable)
Specified by:
error in interface Log

fatal

public void fatal(Object object)
Specified by:
fatal in interface Log

fatal

public void fatal(Object object,
                  Throwable throwable)
Specified by:
fatal in interface Log


Copyright © 2011 Codehaus. All Rights Reserved.