public final class JooqLogger extends 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(Object message)
Log a message in
DEBUG level. |
void |
debug(Object message,
Object details)
Log a message in
DEBUG level. |
void |
debug(Object message,
Object details,
Throwable throwable)
Log a message in
DEBUG level. |
void |
debug(Object message,
Throwable throwable)
Log a message in
DEBUG level. |
void |
error(Object message)
Log a message in
ERROR level. |
void |
error(Object message,
Object details)
Log a message in
ERROR level. |
void |
error(Object message,
Object details,
Throwable throwable)
Log a message in
ERROR level. |
void |
error(Object message,
Throwable throwable)
Log a message in
ERROR level. |
static JooqLogger |
getLogger(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(Object message)
Log a message in
INFO level. |
void |
info(Object message,
Object details)
Log a message in
INFO level. |
void |
info(Object message,
Object details,
Throwable throwable)
Log a message in
INFO level. |
void |
info(Object message,
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(Object message)
Log a message in
TRACE level. |
void |
trace(Object message,
Object details)
Log a message in
TRACE level. |
void |
trace(Object message,
Object details,
Throwable throwable)
Log a message in
TRACE level. |
void |
trace(Object message,
Throwable throwable)
Log a message in
TRACE level. |
void |
warn(Object message)
Log a message in
WARN level. |
void |
warn(Object message,
Object details)
Log a message in
WARN level. |
void |
warn(Object message,
Object details,
Throwable throwable)
Log a message in
WARN level. |
void |
warn(Object message,
Throwable throwable)
Log a message in
WARN level. |
public static JooqLogger getLogger(Class<?> clazz)
public boolean isTraceEnabled()
TRACE
level logging is enabled.isTraceEnabled
in interface Log
public void trace(Object message)
TRACE
level.public void trace(Object message, Object details, Throwable throwable)
TRACE
level.public boolean isDebugEnabled()
DEBUG
level logging is enabled.isDebugEnabled
in interface Log
public void debug(Object message)
DEBUG
level.public void debug(Object message, Object details, Throwable throwable)
DEBUG
level.public boolean isInfoEnabled()
INFO
level logging is enabled.isInfoEnabled
in interface Log
public void info(Object message)
INFO
level.public void info(Object message, Object details, Throwable throwable)
INFO
level.public void warn(Object message)
WARN
level.public void warn(Object message, Object details, Throwable throwable)
WARN
level.public void error(Object message)
ERROR
level.public void error(Object message, Object details, Throwable throwable)
ERROR
level.public static void globalThreshold(JooqLogger.Level level)
public static void globalThreshold(Log.Level level)
Copyright © 2019. All rights reserved.