public final class JooqLogger
extends java.lang.Object
This logger provides abstraction over the three logger APIs supported optionally by jOOQ. These are (in order of preference):
JooqLogger
tries to instantiate any of the above loggers,
catching potential NoClassDefFoundError
's in case any logger API
cannot be found on the classpath.Constructor and Description |
---|
JooqLogger() |
Modifier and Type | Method and Description |
---|---|
void |
debug(java.lang.Object message)
Log a message in
DEBUG level. |
void |
debug(java.lang.Object message,
java.lang.Object details)
Log a message in
DEBUG level. |
void |
debug(java.lang.Object message,
java.lang.Object details,
java.lang.Throwable throwable)
Log a message in
DEBUG level. |
void |
debug(java.lang.Object message,
java.lang.Throwable throwable)
Log a message in
DEBUG level. |
void |
error(java.lang.Object message)
Log a message in
ERROR level. |
void |
error(java.lang.Object message,
java.lang.Object details)
Log a message in
ERROR level. |
void |
error(java.lang.Object message,
java.lang.Object details,
java.lang.Throwable throwable)
Log a message in
ERROR level. |
void |
error(java.lang.Object message,
java.lang.Throwable throwable)
Log a message in
ERROR level. |
static JooqLogger |
getLogger(java.lang.Class<?> clazz)
Get a logger wrapper for a class.
|
void |
info(java.lang.Object message)
Log a message in
INFO level. |
void |
info(java.lang.Object message,
java.lang.Object details)
Log a message in
INFO level. |
void |
info(java.lang.Object message,
java.lang.Object details,
java.lang.Throwable throwable)
Log a message in
INFO level. |
void |
info(java.lang.Object message,
java.lang.Throwable throwable)
Log a message in
INFO level. |
boolean |
isDebugEnabled()
Check if
DEBUG level logging is enabled. |
boolean |
isInfoEnabled()
Check if
INFO level logging is enabled. |
boolean |
isTraceEnabled()
Check if
TRACE level logging is enabled. |
void |
trace(java.lang.Object message)
Log a message in
TRACE level. |
void |
trace(java.lang.Object message,
java.lang.Object details)
Log a message in
TRACE level. |
void |
trace(java.lang.Object message,
java.lang.Object details,
java.lang.Throwable throwable)
Log a message in
TRACE level. |
void |
trace(java.lang.Object message,
java.lang.Throwable throwable)
Log a message in
TRACE level. |
void |
warn(java.lang.Object message)
Log a message in
WARN level. |
void |
warn(java.lang.Object message,
java.lang.Object details)
Log a message in
WARN level. |
void |
warn(java.lang.Object message,
java.lang.Object details,
java.lang.Throwable throwable)
Log a message in
WARN level. |
void |
warn(java.lang.Object message,
java.lang.Throwable throwable)
Log a message in
WARN level. |
public static JooqLogger getLogger(java.lang.Class<?> clazz)
public boolean isTraceEnabled()
TRACE
level logging is enabled.public void trace(java.lang.Object message)
TRACE
level.message
- The log messagepublic void trace(java.lang.Object message, java.lang.Object details)
TRACE
level.message
- The log messagedetails
- The message details (padded to a constant-width message)public void trace(java.lang.Object message, java.lang.Throwable throwable)
TRACE
level.message
- The log messagethrowable
- An exception whose stacktrace is logged along with the
messagepublic void trace(java.lang.Object message, java.lang.Object details, java.lang.Throwable throwable)
TRACE
level.message
- The log messagedetails
- The message details (padded to a constant-width message)throwable
- An exception whose stacktrace is logged along with the
messagepublic boolean isDebugEnabled()
DEBUG
level logging is enabled.public void debug(java.lang.Object message)
DEBUG
level.message
- The log messagepublic void debug(java.lang.Object message, java.lang.Object details)
DEBUG
level.message
- The log messagedetails
- The message details (padded to a constant-width message)public void debug(java.lang.Object message, java.lang.Throwable throwable)
DEBUG
level.message
- The log messagethrowable
- An exception whose stacktrace is logged along with the
messagepublic void debug(java.lang.Object message, java.lang.Object details, java.lang.Throwable throwable)
DEBUG
level.message
- The log messagedetails
- The message details (padded to a constant-width message)throwable
- An exception whose stacktrace is logged along with the
messagepublic boolean isInfoEnabled()
INFO
level logging is enabled.public void info(java.lang.Object message)
INFO
level.message
- The log messagepublic void info(java.lang.Object message, java.lang.Object details)
INFO
level.message
- The log messagedetails
- The message details (padded to a constant-width message)public void info(java.lang.Object message, java.lang.Throwable throwable)
INFO
level.message
- The log messagethrowable
- An exception whose stacktrace is logged along with the
messagepublic void info(java.lang.Object message, java.lang.Object details, java.lang.Throwable throwable)
INFO
level.message
- The log messagedetails
- The message details (padded to a constant-width message)throwable
- An exception whose stacktrace is logged along with the
messagepublic void warn(java.lang.Object message)
WARN
level.message
- The log messagepublic void warn(java.lang.Object message, java.lang.Object details)
WARN
level.message
- The log messagedetails
- The message details (padded to a constant-width message)public void warn(java.lang.Object message, java.lang.Throwable throwable)
WARN
level.message
- The log messagethrowable
- An exception whose stacktrace is logged along with the
messagepublic void warn(java.lang.Object message, java.lang.Object details, java.lang.Throwable throwable)
WARN
level.message
- The log messagedetails
- The message details (padded to a constant-width message)throwable
- An exception whose stacktrace is logged along with the
messagepublic void error(java.lang.Object message)
ERROR
level.message
- The log messagepublic void error(java.lang.Object message, java.lang.Object details)
ERROR
level.message
- The log messagedetails
- The message details (padded to a constant-width message)public void error(java.lang.Object message, java.lang.Throwable throwable)
ERROR
level.message
- The log messagethrowable
- An exception whose stacktrace is logged along with the
messagepublic void error(java.lang.Object message, java.lang.Object details, java.lang.Throwable throwable)
ERROR
level.message
- The log messagedetails
- The message details (padded to a constant-width message)throwable
- An exception whose stacktrace is logged along with the
messageCopyright © 2015. All Rights Reserved.