public class SLF4JExoLog extends Object implements Log
Log that delegates to an instance of Logger.| Constructor and Description |
|---|
SLF4JExoLog(org.slf4j.Logger logger)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
debug(Object o)
Log a message with debug log level.
|
void |
debug(Object o,
Throwable throwable)
Log an error with debug log level.
|
void |
debug(String format,
Object... argsArray)
Log an error with debug log level.
|
void |
error(Object o)
Log a message with error log level.
|
void |
error(Object o,
Throwable throwable)
Log an error with error log level.
|
void |
error(String format,
Object... argsArray)
Log a message with error log level.
|
void |
fatal(Object o)
Log a message with fatal log level.
|
void |
fatal(Object o,
Throwable throwable)
Log an error with fatal log level.
|
void |
fatal(String format,
Object... argsArray)
Log a message with fatal log level.
|
void |
info(Object o)
Log a message with info log level.
|
void |
info(Object o,
Throwable throwable)
Log an error with info log level.
|
void |
info(String format,
Object... argsArray)
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(Object o)
Log a message with trace log level.
|
void |
trace(Object o,
Throwable throwable)
Log an error with trace log level.
|
void |
trace(String format,
Object... argsArray)
Log an error with trace log level.
|
void |
warn(Object o)
Log a message with warn log level.
|
void |
warn(Object o,
Throwable throwable)
Log an error with warn log level.
|
void |
warn(String format,
Object... argsArray)
Log a message with warn log level.
|
public SLF4JExoLog(org.slf4j.Logger logger)
throws IllegalArgumentException
logger - LoggerIllegalArgumentException - if the logger is nullpublic boolean isDebugEnabled()
LogIs debug logging currently enabled?
Call this method to prevent having to perform expensive operations (for
example, String concatenation) when the log level is more than
debug.
isDebugEnabled in interface Logpublic boolean isErrorEnabled()
Is error logging currently enabled?
Call this method to prevent having to perform expensive operations (for
example, String concatenation) when the log level is more than
error.
isErrorEnabled in interface Logpublic boolean isFatalEnabled()
Is fatal logging currently enabled?
Call this method to prevent having to perform expensive operations (for
example, String concatenation) when the log level is more than
fatal.
isFatalEnabled in interface Logpublic boolean isInfoEnabled()
Is info logging currently enabled?
Call this method to prevent having to perform expensive operations (for
example, String concatenation) when the log level is more than
info.
isInfoEnabled in interface Logpublic boolean isTraceEnabled()
Is trace logging currently enabled?
Call this method to prevent having to perform expensive operations (for
example, String concatenation) when the log level is more than
trace.
isTraceEnabled in interface Logpublic boolean isWarnEnabled()
Is warn logging currently enabled?
Call this method to prevent having to perform expensive operations (for
example, String concatenation) when the log level is more than
warn.
isWarnEnabled in interface Logpublic void trace(Object o)
Log a message with trace log level.
public void debug(Object o)
Log a message with debug log level.
public void info(Object o)
Log a message with info log level.
public void warn(Object o)
Log a message with warn log level.
public void error(Object o)
Log a message with error log level.
public void fatal(Object o)
Log a message with fatal log level.
public void trace(String format, Object... argsArray)
Log an error with trace log level.
trace in interface Logformat - String format to represent log message.
Sequence of '{}' is used to represent an anchor which will be replaced by
string representation of objects in argArrayargsArray - Throwable, String
or any other Object for which string representation will be usedpublic void debug(String format, Object... argsArray)
Log an error with debug log level.
debug in interface Logformat - String format to represent log message.
Sequence of '{}' is used to represent an anchor which will be replaced by
string representation of objects in argArrayargsArray - Throwable, String
or any other Object for which string representation will be usedpublic void info(String format, Object... argsArray)
Log an error with info log level.
info in interface Logformat - String format to represent log message.
Sequence of '{}' is used to represent an anchor which will be replaced by
string representation of objects in argArrayargsArray - Throwable, String
or any other Object for which string representation will be usedpublic void warn(String format, Object... argsArray)
Log a message with warn log level.
warn in interface Logformat - String format to represent log message.
Sequence of '{}' is used to represent an anchor which will be replaced by
string representation of objects in argArrayargsArray - Throwable, String
or any other Object for which string representation will be usedpublic void error(String format, Object... argsArray)
Log a message with error log level.
error in interface Logformat - String format to represent log message.
Sequence of '{}' is used to represent an anchor which will be replaced by
string representation of objects in argArrayargsArray - Throwable, String
or any other Object for which string representation will be usedpublic void fatal(String format, Object... argsArray)
Log a message with fatal log level.
fatal in interface Logformat - String format to represent log message.
Sequence of '{}' is used to represent an anchor which will be replaced by
string representation of objects in argArrayargsArray - Throwable, String
or any other Object for which string representation will be usedCopyright © 2018 eXo Platform SAS. All Rights Reserved.