Package org.jclouds.logging.slf4j
Class SLF4JLogger
- java.lang.Object
-
- org.jclouds.logging.BaseLogger
-
- org.jclouds.logging.slf4j.SLF4JLogger
-
- All Implemented Interfaces:
Logger
public class SLF4JLogger extends BaseLogger
LoggerFactory
implementation ofLogger
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SLF4JLogger.SLF4JLoggerFactory
-
Nested classes/interfaces inherited from interface org.jclouds.logging.Logger
Logger.LoggerFactory
-
-
Constructor Summary
Constructors Constructor Description SLF4JLogger(String category, org.slf4j.Logger logger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
-
-
-
Constructor Detail
-
SLF4JLogger
public SLF4JLogger(String category, org.slf4j.Logger logger)
-
-
Method Detail
-
logTrace
protected void logTrace(String message)
- Specified by:
logTrace
in classBaseLogger
-
isTraceEnabled
public boolean isTraceEnabled()
-
logDebug
protected void logDebug(String message)
- Specified by:
logDebug
in classBaseLogger
-
isDebugEnabled
public boolean isDebugEnabled()
-
logInfo
protected void logInfo(String message)
- Specified by:
logInfo
in classBaseLogger
-
isInfoEnabled
public boolean isInfoEnabled()
-
logWarn
protected void logWarn(String message)
- Specified by:
logWarn
in classBaseLogger
-
logWarn
protected void logWarn(String message, Throwable e)
- Specified by:
logWarn
in classBaseLogger
-
isWarnEnabled
public boolean isWarnEnabled()
-
logError
protected void logError(String message)
- Specified by:
logError
in classBaseLogger
-
logError
protected void logError(String message, Throwable e)
- Specified by:
logError
in classBaseLogger
-
isErrorEnabled
public boolean isErrorEnabled()
-
getCategory
public String getCategory()
-
-