Class CommonsLogWrapper

java.lang.Object
com.epam.common.logging.CommonsLogWrapper
All Implemented Interfaces:
Log

public class CommonsLogWrapper extends Object implements Log
Commons log wrapper.
  • Constructor Summary

    Constructors
    Constructor
    Description
    CommonsLogWrapper(org.apache.commons.logging.Log log)
    Creates the CommonsLogWrapper.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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
    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
    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
    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
    Check whether this category is enabled for the DEBUG Level.
    boolean
    Check whether this category is enabled for the ERROR Level.
    boolean
    Check whether this category is enabled for the FATAL Level.
    boolean
    Check whether this category is enabled for the INFO Level.
    boolean
    Check whether this category is enabled for the TRACE Level.
    boolean
    Check whether this category is enabled for the WARN Level.
    void
    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
    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 Details

    • CommonsLogWrapper

      public CommonsLogWrapper(org.apache.commons.logging.Log log)
      Creates the CommonsLogWrapper.
      Parameters:
      log - the instance of org.apache.commons.logging.Log
  • Method Details

    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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: