Package com.epam.common.logging
Class DefaultLog
java.lang.Object
com.epam.common.logging.DefaultLog
- All Implemented Interfaces:
Log
Default log implementation.
This log supports only
error, fatal and warn
levels.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Log a message object with the DEBUG level.void
Log a message object with the DEBUG level including the stack trace of the Throwable.void
Writes error message to err output stream.void
Writes error message to err output stream.void
Writes error message to err output stream.void
Writes error message to err output stream.void
Log a message object with the INFO level.void
Log a message object with the INFO level including the stack trace of the Throwable.boolean
Always returns false.boolean
Always returns true.boolean
Always returns true.boolean
Check whether this category is enabled for the INFO Level.boolean
Always returns false.boolean
Always returns true.void
Log a message object with the TRACE level.void
Log a message object with the trace level including the stack trace of the Throwable.void
Writes error message to output stream.void
Writes error message to output stream.
-
Constructor Details
-
DefaultLog
public DefaultLog()
-
-
Method Details
-
isDebugEnabled
public boolean isDebugEnabled()Always returns false.- Specified by:
isDebugEnabled
in interfaceLog
- See Also:
-
debug
Description copied from interface:Log
Log a message object with the DEBUG level. -
debug
Description copied from interface:Log
Log a message object with the DEBUG level including the stack trace of the Throwable. -
isErrorEnabled
public boolean isErrorEnabled()Always returns true.- Specified by:
isErrorEnabled
in interfaceLog
- See Also:
-
error
Writes error message to err output stream. -
error
Writes error message to err output stream. -
isFatalEnabled
public boolean isFatalEnabled()Always returns true.- Specified by:
isFatalEnabled
in interfaceLog
- See Also:
-
fatal
Writes error message to err output stream. -
fatal
Writes error message to err output stream. -
isInfoEnabled
public boolean isInfoEnabled()Description copied from interface:Log
Check whether this category is enabled for the INFO Level.- Specified by:
isInfoEnabled
in interfaceLog
-
info
Description copied from interface:Log
Log a message object with the INFO level. -
info
Description copied from interface:Log
Log a message object with the INFO level including the stack trace of the Throwable. -
isTraceEnabled
public boolean isTraceEnabled()Always returns false.- Specified by:
isTraceEnabled
in interfaceLog
- See Also:
-
trace
Description copied from interface:Log
Log a message object with the TRACE level. -
trace
Description copied from interface:Log
Log a message object with the trace level including the stack trace of the Throwable. -
isWarnEnabled
public boolean isWarnEnabled()Always returns true.- Specified by:
isWarnEnabled
in interfaceLog
- See Also:
-
warn
Writes error message to output stream. -
warn
Writes error message to output stream.
-