Class SLF4JExoLog
- All Implemented Interfaces:
Log
Log that delegates to an instance of Logger.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidLog a message with debug log level.voidLog an error with debug log level.voidLog an error with debug log level.voidLog a message with error log level.voidLog an error with error log level.voidLog a message with error log level.voidLog a message with fatal log level.voidLog an error with fatal log level.voidLog a message with fatal log level.voidLog a message with info log level.voidLog an error with info log level.voidLog an error with info log level.booleanIs debug logging currently enabled?booleanIs error logging currently enabled?booleanIs fatal logging currently enabled?booleanIs info logging currently enabled?booleanIs trace logging currently enabled?booleanIs warn logging currently enabled?voidLog a message with trace log level.voidLog an error with trace log level.voidLog an error with trace log level.voidLog a message with warn log level.voidLog an error with warn log level.voidLog a message with warn log level.
-
Constructor Details
-
SLF4JExoLog
Create a new instance.- Parameters:
logger- Logger- Throws:
IllegalArgumentException- if the logger is null
-
-
Method Details
-
isDebugEnabled
public boolean isDebugEnabled()Description copied from interface:LogIs debug logging currently enabled?
Call this method to prevent having to perform expensive operations (for example,
Stringconcatenation) when the log level is more than debug.- Specified by:
isDebugEnabledin interfaceLog- Returns:
- true if debug is enabled in the underlying logger.
-
isErrorEnabled
public boolean isErrorEnabled()Is error logging currently enabled?
Call this method to prevent having to perform expensive operations (for example,
Stringconcatenation) when the log level is more than error.- Specified by:
isErrorEnabledin interfaceLog- Returns:
- true if error is enabled in the underlying logger.
-
isFatalEnabled
public boolean isFatalEnabled()Is fatal logging currently enabled?
Call this method to prevent having to perform expensive operations (for example,
Stringconcatenation) when the log level is more than fatal.- Specified by:
isFatalEnabledin interfaceLog- Returns:
- true if fatal is enabled in the underlying logger.
-
isInfoEnabled
public boolean isInfoEnabled()Is info logging currently enabled?
Call this method to prevent having to perform expensive operations (for example,
Stringconcatenation) when the log level is more than info.- Specified by:
isInfoEnabledin interfaceLog- Returns:
- true if info is enabled in the underlying logger.
-
isTraceEnabled
public boolean isTraceEnabled()Is trace logging currently enabled?
Call this method to prevent having to perform expensive operations (for example,
Stringconcatenation) when the log level is more than trace.- Specified by:
isTraceEnabledin interfaceLog- Returns:
- true if trace is enabled in the underlying logger.
-
isWarnEnabled
public boolean isWarnEnabled()Is warn logging currently enabled?
Call this method to prevent having to perform expensive operations (for example,
Stringconcatenation) when the log level is more than warn.- Specified by:
isWarnEnabledin interfaceLog- Returns:
- true if warn is enabled in the underlying logger.
-
trace
Log a message with trace log level.
-
trace
Log an error with trace log level.
-
debug
Log a message with debug log level.
-
debug
Log an error with debug log level.
-
info
Log a message with info log level.
-
info
Log an error with info log level.
-
warn
Log a message with warn log level.
-
warn
Log an error with warn log level.
-
error
Log a message with error log level.
-
error
Log an error with error log level.
-
fatal
Log a message with fatal log level.
-
fatal
Log an error with fatal log level.
-
trace
Log an error with trace log level.
- Specified by:
tracein interfaceLog- Parameters:
format-
Stringformat to represent log message. Sequence of '{}' is used to represent an anchor which will be replaced by string representation of objects in argArrayargsArray-
array of arguments to add to log message includingThrowable,Stringor any otherObjectfor which string representation will be used
-
debug
Log an error with debug log level.
- Specified by:
debugin interfaceLog- Parameters:
format-
Stringformat to represent log message. Sequence of '{}' is used to represent an anchor which will be replaced by string representation of objects in argArrayargsArray-
array of arguments to add to log message includingThrowable,Stringor any otherObjectfor which string representation will be used
-
info
Log an error with info log level.
- Specified by:
infoin interfaceLog- Parameters:
format-
Stringformat to represent log message. Sequence of '{}' is used to represent an anchor which will be replaced by string representation of objects in argArrayargsArray-
array of arguments to add to log message includingThrowable,Stringor any otherObjectfor which string representation will be used
-
warn
Log a message with warn log level.
- Specified by:
warnin interfaceLog- Parameters:
format-
Stringformat to represent log message. Sequence of '{}' is used to represent an anchor which will be replaced by string representation of objects in argArrayargsArray-
array of arguments to add to log message includingThrowable,Stringor any otherObjectfor which string representation will be used
-
error
Log a message with error log level.
- Specified by:
errorin interfaceLog- Parameters:
format-
Stringformat to represent log message. Sequence of '{}' is used to represent an anchor which will be replaced by string representation of objects in argArrayargsArray-
array of arguments to add to log message includingThrowable,Stringor any otherObjectfor which string representation will be used
-
fatal
Log a message with fatal log level.
- Specified by:
fatalin interfaceLog- Parameters:
format-
Stringformat to represent log message. Sequence of '{}' is used to represent an anchor which will be replaced by string representation of objects in argArrayargsArray-
array of arguments to add to log message includingThrowable,Stringor any otherObjectfor which string representation will be used
-