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 TypeMethodDescriptionvoidLog a message object with the DEBUG level.voidLog a message object with the DEBUG level including the stack trace of the Throwable.voidWrites error message to err output stream.voidWrites error message to err output stream.voidWrites error message to err output stream.voidWrites error message to err output stream.voidLog a message object with the INFO level.voidLog a message object with the INFO level including the stack trace of the Throwable.booleanAlways returns false.booleanAlways returns true.booleanAlways returns true.booleanCheck whether this category is enabled for the INFO Level.booleanAlways returns false.booleanAlways returns true.voidLog a message object with the TRACE level.voidLog a message object with the trace level including the stack trace of the Throwable.voidWrites error message to output stream.voidWrites error message to output stream.
-
Constructor Details
-
DefaultLog
public DefaultLog()
-
-
Method Details
-
isDebugEnabled
public boolean isDebugEnabled()Always returns false.- Specified by:
isDebugEnabledin interfaceLog- See Also:
-
debug
Description copied from interface:LogLog a message object with the DEBUG level. -
debug
Description copied from interface:LogLog a message object with the DEBUG level including the stack trace of the Throwable. -
isErrorEnabled
public boolean isErrorEnabled()Always returns true.- Specified by:
isErrorEnabledin 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:
isFatalEnabledin 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:LogCheck whether this category is enabled for the INFO Level.- Specified by:
isInfoEnabledin interfaceLog
-
info
Description copied from interface:LogLog a message object with the INFO level. -
info
Description copied from interface:LogLog a message object with the INFO level including the stack trace of the Throwable. -
isTraceEnabled
public boolean isTraceEnabled()Always returns false.- Specified by:
isTraceEnabledin interfaceLog- See Also:
-
trace
Description copied from interface:LogLog a message object with the TRACE level. -
trace
Description copied from interface:LogLog a message object with the trace level including the stack trace of the Throwable. -
isWarnEnabled
public boolean isWarnEnabled()Always returns true.- Specified by:
isWarnEnabledin interfaceLog- See Also:
-
warn
Writes error message to output stream. -
warn
Writes error message to output stream.
-