public final class JooqLogger extends java.lang.Object implements Log
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.Modifier and Type | Class and Description |
---|---|
static class |
JooqLogger.Level
Deprecated.
- Use
Log.Level instead |
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.
|
static void |
globalThreshold(JooqLogger.Level level)
Set a global level threshold to all JooqLoggers.
|
static void |
globalThreshold(Log.Level level)
Set a global level threshold to all JooqLoggers.
|
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.isTraceEnabled
in interface Log
public void trace(java.lang.Object message)
TRACE
level.public void trace(java.lang.Object message, java.lang.Object details)
TRACE
level.public void trace(java.lang.Object message, java.lang.Throwable throwable)
TRACE
level.public void trace(java.lang.Object message, java.lang.Object details, java.lang.Throwable throwable)
TRACE
level.public boolean isDebugEnabled()
DEBUG
level logging is enabled.isDebugEnabled
in interface Log
public void debug(java.lang.Object message)
DEBUG
level.public void debug(java.lang.Object message, java.lang.Object details)
DEBUG
level.public void debug(java.lang.Object message, java.lang.Throwable throwable)
DEBUG
level.public void debug(java.lang.Object message, java.lang.Object details, java.lang.Throwable throwable)
DEBUG
level.public boolean isInfoEnabled()
INFO
level logging is enabled.isInfoEnabled
in interface Log
public void info(java.lang.Object message)
INFO
level.public void info(java.lang.Object message, java.lang.Object details)
INFO
level.public void info(java.lang.Object message, java.lang.Throwable throwable)
INFO
level.public void info(java.lang.Object message, java.lang.Object details, java.lang.Throwable throwable)
INFO
level.public void warn(java.lang.Object message)
WARN
level.public void warn(java.lang.Object message, java.lang.Object details)
WARN
level.public void warn(java.lang.Object message, java.lang.Throwable throwable)
WARN
level.public void warn(java.lang.Object message, java.lang.Object details, java.lang.Throwable throwable)
WARN
level.public void error(java.lang.Object message)
ERROR
level.public void error(java.lang.Object message, java.lang.Object details)
ERROR
level.public void error(java.lang.Object message, java.lang.Throwable throwable)
ERROR
level.public void error(java.lang.Object message, java.lang.Object details, java.lang.Throwable throwable)
ERROR
level.public static void globalThreshold(JooqLogger.Level level)
public static void globalThreshold(Log.Level level)
Copyright © 2018. All Rights Reserved.