Package alpine.common.logging
Class Logger
java.lang.Object
alpine.common.logging.Logger
All logging is handled through this class. This class wraps an actual logging implementation
or logging framework so that implementations can be swapped out without having to modify
classes that use this logging mechanism.
Note, if Markers are used, the logging implementation will be tied to SLF4j.
- Since:
- 1.0.0
- Author:
- Steve Springett
-
Method Summary
Modifier and TypeMethodDescriptionvoidLog a message at the DEBUG level.voidLog a message at the DEBUG level.voidLog a message at the DEBUG level.voidLog a message at the DEBUG level.voidLog a message at the DEBUG level.voidLog a message at the DEBUG level.voidLog a message at the DEBUG level.voidLog a message at the ERROR level.voidLog a message at the ERROR level.voidLog a message at the ERROR level.voidLog a message at the ERROR level.voidLog a message at the ERROR level.voidLog a message at the ERROR level.voidLog a message at the ERROR level.static LoggerCreate an instance of this class and initialize the underlying logging framework.voidLog a message at the INFO level.voidLog a message at the INFO level.voidLog a message at the INFO level.voidLog a message at the INFO level.voidLog a message at the INFO level.voidLog a message at the INFO level.voidLog a message at the INFO level.booleanIs the logger instance enabled for the DEBUG level?booleanIs the logger instance enabled for the ERROR level?booleanIs the logger instance enabled for the INFO level?booleanIs the logger instance enabled for the TRACE level?booleanIs the logger instance enabled for the WARN level?voidLog a message at the TRACE level.voidLog a message at the TRACE level.voidLog a message at the TRACE level.voidLog a message at the TRACE level.voidLog a message at the TRACE level.voidLog a message at the TRACE level.voidLog a message at the TRACE level.voidLog a message at the WARN level.voidLog a message at the WARN level.voidLog a message at the WARN level.voidLog a message at the WARN level.voidLog a message at the WARN level.voidLog a message at the WARN level.voidLog a message at the WARN level.
-
Method Details
-
getLogger
Create an instance of this class and initialize the underlying logging framework.- Parameters:
clazz- The class to use when writing log information- Returns:
- An instance of the Logger class
- Since:
- 1.0.0
-
isInfoEnabled
public boolean isInfoEnabled()Is the logger instance enabled for the INFO level?- Returns:
- True if this Logger is enabled for the INFO level, false otherwise.
- Since:
- 1.0.0
-
isDebugEnabled
public boolean isDebugEnabled()Is the logger instance enabled for the DEBUG level?- Returns:
- True if this Logger is enabled for the DEBUG level, false otherwise.
- Since:
- 1.0.0
-
isErrorEnabled
public boolean isErrorEnabled()Is the logger instance enabled for the ERROR level?- Returns:
- True if this Logger is enabled for the ERROR level, false otherwise.
- Since:
- 1.0.0
-
isTraceEnabled
public boolean isTraceEnabled()Is the logger instance enabled for the TRACE level?- Returns:
- True if this Logger is enabled for the TRACE level, false otherwise.
- Since:
- 1.0.0
-
isWarnEnabled
public boolean isWarnEnabled()Is the logger instance enabled for the WARN level?- Returns:
- True if this Logger is enabled for the WARN level, false otherwise.
- Since:
- 1.0.0
-
info
Log a message at the INFO level.- Parameters:
message- the message string to be logged- Since:
- 1.0.0
-
info
Log a message at the INFO level.- Parameters:
message- the message string to be loggedthrowable- the exception (throwable) to log- Since:
- 1.0.0
-
info
Log a message at the INFO level.- Parameters:
marker- The marker specific to this log statementmessage- the message string to be logged- Since:
- 1.0.0
-
info
Log a message at the INFO level.- Parameters:
marker- The marker specific to this log statementmessage- the message string to be loggedobject- the argument- Since:
- 1.0.0
-
info
Log a message at the INFO level.- Parameters:
marker- The marker specific to this log statementmessage- the message string to be loggedo1- the first argumento2- the second argument- Since:
- 1.0.0
-
info
Log a message at the INFO level.- Parameters:
marker- The marker specific to this log statementmessage- the message string to be loggedobjects- a list of 3 or more arguments- Since:
- 1.0.0
-
info
Log a message at the INFO level.- Parameters:
marker- The marker specific to this log statementmessage- the message string to be loggedthrowable- the exception (throwable) to log- Since:
- 1.0.0
-
debug
Log a message at the DEBUG level.- Parameters:
message- the message string to be logged- Since:
- 1.0.0
-
debug
Log a message at the DEBUG level.- Parameters:
message- the message string to be loggedthrowable- the exception (throwable) to log- Since:
- 1.0.0
-
debug
Log a message at the DEBUG level.- Parameters:
marker- The marker specific to this log statementmessage- the message string to be logged- Since:
- 1.0.0
-
debug
Log a message at the DEBUG level.- Parameters:
marker- The marker specific to this log statementmessage- the message string to be loggedobject- the argument- Since:
- 1.0.0
-
debug
Log a message at the DEBUG level.- Parameters:
marker- The marker specific to this log statementmessage- the message string to be loggedo1- the first argumento2- the second argument- Since:
- 1.0.0
-
debug
Log a message at the DEBUG level.- Parameters:
marker- The marker specific to this log statementmessage- the message string to be loggedobjects- a list of 3 or more arguments- Since:
- 1.0.0
-
debug
Log a message at the DEBUG level.- Parameters:
marker- The marker specific to this log statementmessage- the message string to be loggedthrowable- the exception (throwable) to log- Since:
- 1.0.0
-
error
Log a message at the ERROR level.- Parameters:
message- the message string to be logged- Since:
- 1.0.0
-
error
Log a message at the ERROR level.- Parameters:
message- the message string to be loggedthrowable- the exception (throwable) to log- Since:
- 1.0.0
-
error
Log a message at the ERROR level.- Parameters:
marker- The marker specific to this log statementmessage- the message string to be logged- Since:
- 1.0.0
-
error
Log a message at the ERROR level.- Parameters:
marker- The marker specific to this log statementmessage- the message string to be loggedobject- the argument- Since:
- 1.0.0
-
error
Log a message at the ERROR level.- Parameters:
marker- The marker specific to this log statementmessage- the message string to be loggedo1- the first argumento2- the second argument- Since:
- 1.0.0
-
error
Log a message at the ERROR level.- Parameters:
marker- The marker specific to this log statementmessage- the message string to be loggedobjects- a list of 3 or more arguments- Since:
- 1.0.0
-
error
Log a message at the ERROR level.- Parameters:
marker- The marker specific to this log statementmessage- the message string to be loggedthrowable- the exception (throwable) to log- Since:
- 1.0.0
-
trace
Log a message at the TRACE level.- Parameters:
message- the message string to be logged- Since:
- 1.0.0
-
trace
Log a message at the TRACE level.- Parameters:
message- the message string to be loggedthrowable- the exception (throwable) to log- Since:
- 1.0.0
-
trace
Log a message at the TRACE level.- Parameters:
marker- The marker specific to this log statementmessage- the message string to be logged- Since:
- 1.0.0
-
trace
Log a message at the TRACE level.- Parameters:
marker- The marker specific to this log statementmessage- the message string to be loggedobject- the argument- Since:
- 1.0.0
-
trace
Log a message at the TRACE level.- Parameters:
marker- The marker specific to this log statementmessage- the message string to be loggedo1- the first argumento2- the second argument- Since:
- 1.0.0
-
trace
Log a message at the TRACE level.- Parameters:
marker- The marker specific to this log statementmessage- the message string to be loggedobjects- a list of 3 or more arguments- Since:
- 1.0.0
-
trace
Log a message at the TRACE level.- Parameters:
marker- The marker specific to this log statementmessage- the message string to be loggedthrowable- the exception (throwable) to log- Since:
- 1.0.0
-
warn
Log a message at the WARN level.- Parameters:
message- the message string to be logged- Since:
- 1.0.0
-
warn
Log a message at the WARN level.- Parameters:
message- the message string to be loggedthrowable- the exception (throwable) to log- Since:
- 1.0.0
-
warn
Log a message at the WARN level.- Parameters:
marker- The marker specific to this log statementmessage- the message string to be logged- Since:
- 1.0.0
-
warn
Log a message at the WARN level.- Parameters:
marker- The marker specific to this log statementmessage- the message string to be loggedobject- the argument- Since:
- 1.0.0
-
warn
Log a message at the WARN level.- Parameters:
marker- The marker specific to this log statementmessage- the message string to be loggedo1- the first argumento2- the second argument- Since:
- 1.0.0
-
warn
Log a message at the WARN level.- Parameters:
marker- The marker specific to this log statementmessage- the message string to be loggedobjects- a list of 3 or more arguments- Since:
- 1.0.0
-
warn
Log a message at the WARN level.- Parameters:
marker- The marker specific to this log statementmessage- the message string to be loggedthrowable- the exception (throwable) to log- Since:
- 1.0.0
-