public class Slf4JLogger extends Object implements Log, Serializable
Log that maps to a SLF4J
Logger.
| Constructor and Description |
|---|
Slf4JLogger() |
Slf4JLogger(Class<?> clazz)
Base constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
debug(Object message)
Log a message to the SLF4J Logger with
DEBUG priority. |
void |
debug(Object message,
Throwable t)
Log an error to the SLF4J Logger with
DEBUG priority. |
void |
error(Object message)
Log a message to the SLF4J Logger with
ERROR priority. |
void |
error(Object message,
Throwable t)
Log an error to the SLF4J Logger with
ERROR priority. |
void |
fatal(Object message)
Log a message to the SLF4J Logger with
FATAL priority. |
void |
fatal(Object message,
Throwable t)
Log an error to the SLF4J Logger with
FATAL priority. |
org.slf4j.Logger |
getLogger()
Return the native Logger instance we are using.
|
void |
info(Object message)
Log a message to the SLF4J Logger with
INFO priority. |
void |
info(Object message,
Throwable t)
Log an error to the SLF4J Logger with
INFO priority. |
boolean |
isDebugEnabled()
Check whether the SLF4J Logger used is enabled for
DEBUG
priority. |
boolean |
isErrorEnabled()
Check whether the SLF4J Logger used is enabled for
ERROR
priority. |
boolean |
isFatalEnabled()
Check whether the SLF4J Logger used is enabled for
FATAL
priority. |
boolean |
isInfoEnabled()
Check whether the SLF4J Logger used is enabled for
INFO
priority. |
boolean |
isTraceEnabled()
Check whether the SLF4J Logger used is enabled for
TRACE
priority. |
boolean |
isWarnEnabled()
Check whether the SLF4J Logger used is enabled for
WARN
priority. |
void |
trace(Object message)
Log a message to the SLF4J Logger with
TRACE priority. |
void |
trace(Object message,
Throwable t)
Log an error to the SLF4J Logger with
TRACE priority. |
void |
warn(Object message)
Log a message to the SLF4J Logger with
WARN priority. |
void |
warn(Object message,
Throwable t)
Log an error to the SLF4J Logger with
WARN priority. |
public Slf4JLogger()
public Slf4JLogger(Class<?> clazz)
public void trace(Object message)
TRACE priority.
Currently logs to DEBUG level in SLF4J.public void trace(Object message, Throwable t)
TRACE priority.public void debug(Object message)
DEBUG priority.public void debug(Object message, Throwable t)
DEBUG priority.public void info(Object message)
INFO priority.public void info(Object message, Throwable t)
INFO priority.public void warn(Object message)
WARN priority.public void warn(Object message, Throwable t)
WARN priority.public void error(Object message)
ERROR priority.public void error(Object message, Throwable t)
ERROR priority.public void fatal(Object message)
FATAL priority.
Currently uses the ERROR priority in SLF4J.
public void fatal(Object message, Throwable t)
FATAL priority.
Currently uses the ERROR priority in SLF4J.
public final org.slf4j.Logger getLogger()
public boolean isDebugEnabled()
DEBUG
priority.isDebugEnabled in interface Logpublic boolean isErrorEnabled()
ERROR
priority.public boolean isFatalEnabled()
FATAL
priority. For SLF4J, this returns the value of
isErrorEnabled()public boolean isInfoEnabled()
INFO
priority.public boolean isTraceEnabled()
TRACE
priority.public boolean isWarnEnabled()
WARN
priority.Copyright © 2004–2022. All rights reserved.