org.jclouds.logging.log4j
Class Log4JLogger

java.lang.Object
  extended by org.jclouds.logging.BaseLogger
      extended by org.jclouds.logging.log4j.Log4JLogger
All Implemented Interfaces:
Logger

public class Log4JLogger
extends BaseLogger

Logger implementation of Logger.

Author:
Adrian Cole

Nested Class Summary
static class Log4JLogger.Log4JLoggerFactory
           
 
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
Log4JLogger(String category, org.apache.log4j.Logger logger)
           
 
Method Summary
 String getCategory()
           
 boolean isDebugEnabled()
           
 boolean isErrorEnabled()
           
 boolean isInfoEnabled()
           
 boolean isTraceEnabled()
           
 boolean isWarnEnabled()
           
protected  void logDebug(String message)
           
protected  void logError(String message)
           
protected  void logError(String message, Throwable e)
           
protected  void logInfo(String message)
           
protected  void logTrace(String message)
           
protected  void logWarn(String message)
           
protected  void logWarn(String message, Throwable e)
           
 
Methods inherited from class org.jclouds.logging.BaseLogger
debug, error, error, info, trace, warn, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Log4JLogger

public Log4JLogger(String category,
                   org.apache.log4j.Logger logger)
Method Detail

logTrace

protected void logTrace(String message)
Specified by:
logTrace in class BaseLogger

isTraceEnabled

public boolean isTraceEnabled()

logDebug

protected void logDebug(String message)
Specified by:
logDebug in class BaseLogger

isDebugEnabled

public boolean isDebugEnabled()

logInfo

protected void logInfo(String message)
Specified by:
logInfo in class BaseLogger

isInfoEnabled

public boolean isInfoEnabled()

logWarn

protected void logWarn(String message)
Specified by:
logWarn in class BaseLogger

logWarn

protected void logWarn(String message,
                       Throwable e)
Specified by:
logWarn in class BaseLogger

isWarnEnabled

public boolean isWarnEnabled()

logError

protected void logError(String message)
Specified by:
logError in class BaseLogger

logError

protected void logError(String message,
                        Throwable e)
Specified by:
logError in class BaseLogger

isErrorEnabled

public boolean isErrorEnabled()

getCategory

public String getCategory()


Copyright © 2009-2011 jclouds. All Rights Reserved.