Class DefaultLog

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

public class DefaultLog extends Object implements Log
Default log implementation. This log supports only error, fatal and warn levels.
  • Constructor Details

    • DefaultLog

      public DefaultLog()
  • Method Details

    • isDebugEnabled

      public boolean isDebugEnabled()
      Always returns false.
      Specified by:
      isDebugEnabled in interface Log
      See Also:
    • 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:
    • isErrorEnabled

      public boolean isErrorEnabled()
      Always returns true.
      Specified by:
      isErrorEnabled in interface Log
      See Also:
    • error

      public void error(Object o)
      Writes error message to err output stream.
      Specified by:
      error in interface Log
      Parameters:
      o - the message
      See Also:
    • error

      public void error(Object o, Throwable throwable)
      Writes error message to err output stream.
      Specified by:
      error in interface Log
      Parameters:
      o - the message
      throwable - the error
      See Also:
    • isFatalEnabled

      public boolean isFatalEnabled()
      Always returns true.
      Specified by:
      isFatalEnabled in interface Log
      See Also:
    • fatal

      public void fatal(Object o)
      Writes error message to err output stream.
      Specified by:
      fatal in interface Log
      Parameters:
      o - the message
      See Also:
    • fatal

      public void fatal(Object o, Throwable throwable)
      Writes error message to err output stream.
      Specified by:
      fatal in interface Log
      Parameters:
      o - the message
      throwable - the error
      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
    • 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:
    • isTraceEnabled

      public boolean isTraceEnabled()
      Always returns false.
      Specified by:
      isTraceEnabled 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:
    • isWarnEnabled

      public boolean isWarnEnabled()
      Always returns true.
      Specified by:
      isWarnEnabled in interface Log
      See Also:
    • warn

      public void warn(Object o)
      Writes error message to output stream.
      Specified by:
      warn in interface Log
      Parameters:
      o - the message
      See Also:
    • warn

      public void warn(Object o, Throwable throwable)
      Writes error message to output stream.
      Specified by:
      warn in interface Log
      Parameters:
      o - the message
      throwable - the error
      See Also: