Package com.epam.common.logging
Class CommonsLogWrapper
java.lang.Object
com.epam.common.logging.CommonsLogWrapper
- All Implemented Interfaces:
Log
Commons log wrapper.
-
Constructor Summary
ConstructorsConstructorDescriptionCommonsLogWrapper
(org.apache.commons.logging.Log log) Creates theCommonsLogWrapper
. -
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
Log a message object with the ERROR level.void
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
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
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
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
Log a message object with the WARN level including the stack trace of the Throwable.
-
Constructor Details
-
CommonsLogWrapper
public CommonsLogWrapper(org.apache.commons.logging.Log log) Creates theCommonsLogWrapper
.- Parameters:
log
- the instance of org.apache.commons.logging.Log
-
-
Method Details
-
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. -
error
Description copied from interface:Log
Log a message object with the ERROR level. -
error
Description copied from interface:Log
Log a message object with the DEBUG level including the stack trace of the Throwable. -
fatal
Description copied from interface:Log
Log a message object with the FATAL level. -
fatal
Description copied from interface:Log
Log a message object with the FATAL level including the stack trace of the Throwable. -
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. -
isDebugEnabled
public boolean isDebugEnabled()Description copied from interface:Log
Check whether this category is enabled for the DEBUG Level.- Specified by:
isDebugEnabled
in interfaceLog
- 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 interfaceLog
- 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 interfaceLog
- 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 interfaceLog
- 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 interfaceLog
- 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 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. -
warn
Description copied from interface:Log
Log a message object with the WARN level. -
warn
Description copied from interface:Log
Log a message object with the WARN level including the stack trace of the Throwable.
-