com.epam.common.logging
Class SLF4JLogWrapper

java.lang.Object
  extended by com.epam.common.logging.SLF4JLogWrapper
All Implemented Interfaces:
Log

public class SLF4JLogWrapper
extends Object
implements Log

SLF4J log wrapper.


Constructor Summary
SLF4JLogWrapper(org.slf4j.Logger logger)
           
 
Method Summary
 void debug(Object o)
          Log a message object with the DEBUG level.
 void debug(Object o, Throwable throwable)
          Log a message object with the DEBUG level including the stack trace of the Throwable.
 void error(Object o)
          Log a message object with the ERROR level.
 void error(Object o, Throwable throwable)
          Log a message object with the DEBUG level including the stack trace of the Throwable.
 void fatal(Object o)
          Log a message object with the FATAL level.
 void fatal(Object o, Throwable throwable)
          Log a message object with the FATAL level including the stack trace of the Throwable.
 void info(Object o)
          Log a message object with the INFO level.
 void info(Object o, Throwable throwable)
          Log a message object with the INFO level including the stack trace of the Throwable.
 boolean isDebugEnabled()
          Check whether this category is enabled for the DEBUG Level.
 boolean isErrorEnabled()
          Check whether this category is enabled for the ERROR Level.
 boolean isFatalEnabled()
          Check whether this category is enabled for the FATAL Level.
 boolean isInfoEnabled()
          Check whether this category is enabled for the INFO Level.
 boolean isTraceEnabled()
          Check whether this category is enabled for the TRACE Level.
 boolean isWarnEnabled()
          Check whether this category is enabled for the WARN Level.
 void trace(Object o)
          Log a message object with the TRACE level.
 void trace(Object o, Throwable throwable)
          Log a message object with the trace level including the stack trace of the Throwable.
 void warn(Object o)
          Log a message object with the WARN level.
 void warn(Object o, Throwable throwable)
          Log a message object with the WARN level including the stack trace of the Throwable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SLF4JLogWrapper

public SLF4JLogWrapper(org.slf4j.Logger logger)
Method Detail

debug

public void debug(Object o)
Description copied from interface: Log
Log a message object with the DEBUG level.

Specified by:
debug in interface Log
Parameters:
o - the message
See Also:
Log.debug(Object)

debug

public void debug(Object o,
                  Throwable throwable)
Description copied from interface: Log
Log a message object with the DEBUG level including the stack trace of the Throwable.

Specified by:
debug in interface Log
Parameters:
o - the message
throwable - the error
See Also:
Log.debug(Object, Throwable)

error

public void error(Object o)
Description copied from interface: Log
Log a message object with the ERROR level.

Specified by:
error in interface Log
Parameters:
o - the message
See Also:
Log.error(Object)

error

public void error(Object o,
                  Throwable throwable)
Description copied from interface: Log
Log a message object with the DEBUG level including the stack trace of the Throwable.

Specified by:
error in interface Log
Parameters:
o - the message
throwable - the error
See Also:
Log.error(Object, Throwable)

fatal

public void fatal(Object o)
Description copied from interface: Log
Log a message object with the FATAL level.

Specified by:
fatal in interface Log
Parameters:
o - the message
See Also:
Log.fatal(Object)

fatal

public void fatal(Object o,
                  Throwable throwable)
Description copied from interface: Log
Log a message object with the FATAL level including the stack trace of the Throwable.

Specified by:
fatal in interface Log
Parameters:
o - the message
throwable - the error
See Also:
Log.fatal(Object, Throwable)

info

public void info(Object o)
Description copied from interface: Log
Log a message object with the INFO level.

Specified by:
info in interface Log
Parameters:
o - the message
See Also:
Log.info(Object)

info

public void info(Object o,
                 Throwable throwable)
Description copied from interface: Log
Log a message object with the INFO level including the stack trace of the Throwable.

Specified by:
info in interface Log
Parameters:
o - the message
throwable - the error
See Also:
Log.info(Object, Throwable)

isDebugEnabled

public boolean isDebugEnabled()
Description copied from interface: Log
Check whether this category is enabled for the DEBUG Level.

Specified by:
isDebugEnabled in interface Log
See Also:
Log.isDebugEnabled()

isErrorEnabled

public boolean isErrorEnabled()
Description copied from interface: Log
Check whether this category is enabled for the ERROR Level.

Specified by:
isErrorEnabled in interface Log
See Also:
Log.isErrorEnabled()

isFatalEnabled

public boolean isFatalEnabled()
Description copied from interface: Log
Check whether this category is enabled for the FATAL Level.

Specified by:
isFatalEnabled in interface Log
See Also:
Log.isFatalEnabled()

isInfoEnabled

public boolean isInfoEnabled()
Description copied from interface: Log
Check whether this category is enabled for the INFO Level.

Specified by:
isInfoEnabled in interface Log
See Also:
Log.isInfoEnabled()

isTraceEnabled

public boolean isTraceEnabled()
Description copied from interface: Log
Check whether this category is enabled for the TRACE Level.

Specified by:
isTraceEnabled in interface Log
See Also:
Log.isTraceEnabled()

isWarnEnabled

public boolean isWarnEnabled()
Description copied from interface: Log
Check whether this category is enabled for the WARN Level.

Specified by:
isWarnEnabled in interface Log
See Also:
Log.isWarnEnabled()

trace

public void trace(Object o)
Description copied from interface: Log
Log a message object with the TRACE level.

Specified by:
trace in interface Log
Parameters:
o - the message
See Also:
Log.trace(Object)

trace

public void trace(Object o,
                  Throwable throwable)
Description copied from interface: Log
Log a message object with the trace level including the stack trace of the Throwable.

Specified by:
trace in interface Log
Parameters:
o - the message
throwable - the error
See Also:
Log.trace(Object, Throwable)

warn

public void warn(Object o)
Description copied from interface: Log
Log a message object with the WARN level.

Specified by:
warn in interface Log
Parameters:
o - the message
See Also:
Log.warn(Object)

warn

public void warn(Object o,
                 Throwable throwable)
Description copied from interface: Log
Log a message object with the WARN level including the stack trace of the Throwable.

Specified by:
warn in interface Log
Parameters:
o - the message
throwable - the error
See Also:
Log.warn(Object, Throwable)


Copyright © 2000-2014 EPAM Systems. All Rights Reserved.