class LogOverSlf4j extends LogFactory implements Log
Modifier and Type | Class and Description |
---|---|
static class |
LogOverSlf4j.MarkerHolder
Holds reference to the Marker used for FATAL log level, with label "FATAL", in order to
avoid initialization of the marker if class is loaded and slf is not in the classpath.
|
FATAL_LEVEL
Constructor and Description |
---|
LogOverSlf4j()
Used to build a factory.
|
LogOverSlf4j(org.slf4j.Logger logger,
String name)
Used to encapsulated a slf4j logger.
|
Modifier and Type | Method and Description |
---|---|
protected LogOverSlf4j |
createLogger(Class<?> clazz)
Creates logger named with full qualified class name.
|
protected LogOverSlf4j |
createLogger(String loggerName)
Creates logger with provided name.
|
void |
debug(String message)
Log a message with debug log level.
|
void |
debug(String message,
Throwable t)
Log an error with debug log level.
|
void |
error(String message)
Log a message with error log level.
|
void |
error(String message,
Throwable t)
Log an error with error log level.
|
void |
fatal(String message)
Log a message with fatal log level.
|
void |
fatal(String message,
Throwable t)
Log an error with fatal log level.
|
String |
getName() |
void |
info(String message)
Log a message with info log level.
|
void |
info(String message,
Throwable t)
Log an error with info log level.
|
boolean |
isDebugEnabled()
Is debug logging currently enabled?
|
boolean |
isErrorEnabled()
Is error logging currently enabled?
|
boolean |
isFatalEnabled()
Is fatal logging currently enabled?
|
boolean |
isInfoEnabled()
Is info logging currently enabled?
|
boolean |
isTraceEnabled()
Is trace logging currently enabled?
|
boolean |
isWarnEnabled()
Is warn logging currently enabled?
|
void |
trace(String message)
Log a message with trace log level.
|
void |
trace(String message,
Throwable t)
Log an error with trace log level.
|
void |
warn(String message)
Log a message with warn log level.
|
void |
warn(String message,
Throwable t)
Log an error with warn log level.
|
getLog, getLog
LogOverSlf4j()
LogOverSlf4j(org.slf4j.Logger logger, String name)
logger
- name
- protected LogOverSlf4j createLogger(Class<?> clazz)
LogFactory
createLogger
in class LogFactory
clazz
- The logger will have the qualified class name as name.protected LogOverSlf4j createLogger(String loggerName)
LogFactory
createLogger
in class LogFactory
loggerName
- The logger will have the provided name.public boolean isTraceEnabled()
Log
isTraceEnabled
in interface Log
public boolean isDebugEnabled()
Log
isDebugEnabled
in interface Log
public boolean isInfoEnabled()
Log
isInfoEnabled
in interface Log
public boolean isWarnEnabled()
Log
isWarnEnabled
in interface Log
public boolean isErrorEnabled()
Log
isErrorEnabled
in interface Log
public boolean isFatalEnabled()
Log
isFatalEnabled
in interface Log
public void trace(String message)
Log
public void trace(String message, Throwable t)
Log
public void debug(String message)
Log
public void debug(String message, Throwable t)
Log
public void info(String message)
Log
public void info(String message, Throwable t)
Log
public void warn(String message)
Log
public void warn(String message, Throwable t)
Log
public void error(String message)
Log
public void error(String message, Throwable t)
Log
public void fatal(String message)
Log
public void fatal(String message, Throwable t)
Log