com.epam.common.logging
Class DefaultLog

java.lang.Object
  extended by 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 Summary
DefaultLog()
           
 
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)
          Writes error message to err output stream.
 void error(Object o, Throwable throwable)
          Writes error message to err output stream.
 void fatal(Object o)
          Writes error message to err output stream.
 void fatal(Object o, Throwable throwable)
          Writes error message to err output stream.
 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()
          Always returns false.
 boolean isErrorEnabled()
          Always returns true.
 boolean isFatalEnabled()
          Always returns true.
 boolean isInfoEnabled()
          Check whether this category is enabled for the INFO Level.
 boolean isTraceEnabled()
          Always returns false.
 boolean isWarnEnabled()
          Always returns true.
 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)
          Writes error message to output stream.
 void warn(Object o, Throwable throwable)
          Writes error message to output stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultLog

public DefaultLog()
Method Detail

isDebugEnabled

public boolean isDebugEnabled()
Always returns false.

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

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)

isErrorEnabled

public boolean isErrorEnabled()
Always returns true.

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

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:
Log.error(Object)

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:
Log.error(Object, Throwable)

isFatalEnabled

public boolean isFatalEnabled()
Always returns true.

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

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:
Log.fatal(Object)

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:
Log.fatal(Object, Throwable)

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

isTraceEnabled

public boolean isTraceEnabled()
Always returns false.

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

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)

isWarnEnabled

public boolean isWarnEnabled()
Always returns true.

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

warn

public void warn(Object o)
Writes error message to output stream.

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

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:
Log.warn(Object, Throwable)


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