Package org.seppiko.commons.logging
Interface AbstractLogging
public interface AbstractLogging
Abstract Logging interface
- Author:
- Leonard Woo
-
Method Summary
Modifier and TypeMethodDescriptionvoiddebug(CharSequence message) Logs a message CharSequence with the DEBUG level.voiddebug(CharSequence message, Throwable cause) Logs a CharSequence at the DEBUG level including the stack trace of the Throwable.voiderror(CharSequence message) Logs a message CharSequence with the ERROR level.voiderror(CharSequence message, Throwable cause) Logs a CharSequence at the ERROR level including the stack trace of the Throwable.voidfatal(CharSequence message) Logs a message CharSequence with the FATAL level.voidfatal(CharSequence message, Throwable cause) Logs a CharSequence at the FATAL level including the stack trace of the Throwable.voidinfo(CharSequence message) Logs a message CharSequence with the INFO level.voidinfo(CharSequence message, Throwable cause) Logs a CharSequence at the INFO level including the stack trace of the Throwable.booleanChecks whether this Logger is enabled for the DEBUG level.booleanChecks whether this Logger is enabled for the ERROR level.booleanChecks whether this Logger is enabled for the FATAL level.booleanChecks whether this Logger is enabled for the INFO level.booleanChecks whether this Logger is enabled for the TRACE level.booleanChecks whether this Logger is enabled for the WARN level.voidtrace(CharSequence message) Logs a message CharSequence with the TRACE level.voidtrace(CharSequence message, Throwable cause) Logs a CharSequence at the TRACE level including the stack trace of the Throwable.voidwarn(CharSequence message) Logs a message CharSequence with the WARN level.voidwarn(CharSequence message, Throwable cause) Logs a CharSequence at the WARN level including the stack trace of the Throwable.
-
Method Details
-
isTraceEnable
boolean isTraceEnable()Checks whether this Logger is enabled for the TRACE level.- Returns:
- true if this Logger is enabled for level TRACE, false otherwise.
-
trace
Logs a message CharSequence with the TRACE level.- Parameters:
message- the message object to log.
-
trace
Logs a CharSequence at the TRACE level including the stack trace of the Throwable. throwable passed as parameter.- Parameters:
message- the message object to log.cause- the Throwable to log, including its stack trace.
-
isDebugEnable
boolean isDebugEnable()Checks whether this Logger is enabled for the DEBUG level.- Returns:
- true if this Logger is enabled for level DEBUG, false otherwise.
-
debug
Logs a message CharSequence with the DEBUG level.- Parameters:
message- the message object to log.
-
debug
Logs a CharSequence at the DEBUG level including the stack trace of the Throwable. throwable passed as parameter.- Parameters:
message- the message object to log.cause- the Throwable to log, including its stack trace.
-
isInfoEnable
boolean isInfoEnable()Checks whether this Logger is enabled for the INFO level.- Returns:
- true if this Logger is enabled for level INFO, false otherwise.
-
info
Logs a message CharSequence with the INFO level.- Parameters:
message- the message object to log.
-
info
Logs a CharSequence at the INFO level including the stack trace of the Throwable. throwable passed as parameter.- Parameters:
message- the message object to log.cause- the Throwable to log, including its stack trace.
-
isWarnEnable
boolean isWarnEnable()Checks whether this Logger is enabled for the WARN level.- Returns:
- true if this Logger is enabled for level WARN, false otherwise.
-
warn
Logs a message CharSequence with the WARN level.- Parameters:
message- the message object to log.
-
warn
Logs a CharSequence at the WARN level including the stack trace of the Throwable. throwable passed as parameter.- Parameters:
message- the message object to log.cause- the Throwable to log, including its stack trace.
-
isErrorEnable
boolean isErrorEnable()Checks whether this Logger is enabled for the ERROR level.- Returns:
- true if this Logger is enabled for level ERROR, false otherwise.
-
error
Logs a message CharSequence with the ERROR level.- Parameters:
message- the message object to log.
-
error
Logs a CharSequence at the ERROR level including the stack trace of the Throwable. throwable passed as parameter.- Parameters:
message- the message object to log.cause- the Throwable to log, including its stack trace.
-
isFatalEnable
boolean isFatalEnable()Checks whether this Logger is enabled for the FATAL level.- Returns:
- true if this Logger is enabled for level FATAL, false otherwise.
-
fatal
Logs a message CharSequence with the FATAL level.- Parameters:
message- the message object to log.
-
fatal
Logs a CharSequence at the FATAL level including the stack trace of the Throwable. throwable passed as parameter.- Parameters:
message- the message object to log.cause- the Throwable to log, including its stack trace.
-