org.jclouds.logging
Class BaseLogger

java.lang.Object
  extended by org.jclouds.logging.BaseLogger
All Implemented Interfaces:
Logger
Direct Known Subclasses:
AntLogger, JDKLogger, Log4JLogger, SLF4JLogger

public abstract class BaseLogger
extends Object
implements Logger

Base implementation that constructs formatted log strings.

Author:
Adrian Cole

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jclouds.logging.Logger
Logger.LoggerFactory
 
Field Summary
 
Fields inherited from interface org.jclouds.logging.Logger
CONSOLE, NULL
 
Constructor Summary
BaseLogger()
           
 
Method Summary
 void debug(String message, Object... args)
           
 void error(String message, Object... args)
           
 void error(Throwable e, String message, Object... args)
           
 void info(String message, Object... args)
           
protected abstract  void logDebug(String message)
           
protected abstract  void logError(String message)
           
protected abstract  void logError(String message, Throwable e)
           
protected abstract  void logInfo(String message)
           
protected abstract  void logTrace(String message)
           
protected abstract  void logWarn(String message)
           
protected abstract  void logWarn(String message, Throwable e)
           
 void trace(String message, Object... args)
           
 void warn(String message, Object... args)
           
 void warn(Throwable e, String message, Object... args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jclouds.logging.Logger
getCategory, isDebugEnabled, isErrorEnabled, isInfoEnabled, isTraceEnabled, isWarnEnabled
 

Constructor Detail

BaseLogger

public BaseLogger()
Method Detail

logError

protected abstract void logError(String message,
                                 Throwable e)

logError

protected abstract void logError(String message)

logWarn

protected abstract void logWarn(String message,
                                Throwable e)

logWarn

protected abstract void logWarn(String message)

logInfo

protected abstract void logInfo(String message)

logDebug

protected abstract void logDebug(String message)

logTrace

protected abstract void logTrace(String message)

trace

public void trace(String message,
                  Object... args)
Specified by:
trace in interface Logger

debug

public void debug(String message,
                  Object... args)
Specified by:
debug in interface Logger

info

public void info(String message,
                 Object... args)
Specified by:
info in interface Logger

warn

public void warn(String message,
                 Object... args)
Specified by:
warn in interface Logger

warn

public void warn(Throwable e,
                 String message,
                 Object... args)
Specified by:
warn in interface Logger

error

public void error(String message,
                  Object... args)
Specified by:
error in interface Logger

error

public void error(Throwable e,
                  String message,
                  Object... args)
Specified by:
error in interface Logger


Copyright © 2009-2011 jclouds. All Rights Reserved.