public static class Logger.ALogger
extends java.lang.Object
Constructor and Description |
---|
ALogger(play.api.Logger logger) |
Modifier and Type | Method and Description |
---|---|
void |
debug(org.slf4j.Marker marker,
java.lang.String message)
Logs a message with the DEBUG level.
|
void |
debug(org.slf4j.Marker marker,
java.lang.String message,
java.lang.Object... args)
Logs a message with the DEBUG level.
|
void |
debug(org.slf4j.Marker marker,
java.lang.String message,
java.lang.Throwable error)
Logs a message with the DEBUG level, with the given error.
|
void |
debug(java.lang.String message)
Logs a message with the DEBUG level.
|
void |
debug(java.lang.String message,
java.lang.Object... args)
Logs a message with the DEBUG level.
|
void |
debug(java.lang.String message,
java.util.function.Supplier<?>... args)
Log a message with the DEBUG level.
|
void |
debug(java.lang.String message,
java.lang.Throwable error)
Logs a message with the DEBUG level, with the given error.
|
void |
debug(java.util.function.Supplier<java.lang.String> msgSupplier)
Log a message with the DEBUG level.
|
void |
error(org.slf4j.Marker marker,
java.lang.String message)
Log a message with the ERROR level.
|
void |
error(org.slf4j.Marker marker,
java.lang.String message,
java.lang.Object... args)
Log a message with the ERROR level.
|
void |
error(org.slf4j.Marker marker,
java.lang.String message,
java.lang.Throwable error)
Log a message with the ERROR level, with the given error.
|
void |
error(java.lang.String message)
Log a message with the ERROR level.
|
void |
error(java.lang.String message,
java.lang.Object... args)
Log a message with the ERROR level.
|
void |
error(java.lang.String message,
java.util.function.Supplier<?>... args)
Log a message with the ERROR level.
|
void |
error(java.lang.String message,
java.lang.Throwable error)
Log a message with the ERROR level, with the given error.
|
void |
error(java.util.function.Supplier<java.lang.String> msgSupplier)
Log a message with the ERROR level.
|
void |
info(org.slf4j.Marker marker,
java.lang.String message)
Logs a message with the INFO level.
|
void |
info(org.slf4j.Marker marker,
java.lang.String message,
java.lang.Object... args)
Logs a message with the INFO level.
|
void |
info(org.slf4j.Marker marker,
java.lang.String message,
java.lang.Throwable error)
Logs a message with the INFO level, with the given error.
|
void |
info(java.lang.String message)
Logs a message with the INFO level.
|
void |
info(java.lang.String message,
java.lang.Object... args)
Logs a message with the INFO level.
|
void |
info(java.lang.String message,
java.util.function.Supplier<?>... args)
Log a message with the INFO level.
|
void |
info(java.lang.String message,
java.lang.Throwable error)
Logs a message with the INFO level, with the given error.
|
void |
info(java.util.function.Supplier<java.lang.String> msgSupplier)
Log a message with the INFO level.
|
boolean |
isDebugEnabled()
Returns
true if the logger instance has DEBUG level logging enabled. |
boolean |
isDebugEnabled(org.slf4j.Marker marker)
Similar to
isDebugEnabled() method except that the
marker data is also taken into account. |
boolean |
isErrorEnabled()
Returns
true if the logger instance has ERROR level logging enabled. |
boolean |
isErrorEnabled(org.slf4j.Marker marker)
Similar to
isErrorEnabled() method except that the
marker data is also taken into consideration. |
boolean |
isInfoEnabled()
Returns
true if the logger instance has INFO level logging enabled. |
boolean |
isInfoEnabled(org.slf4j.Marker marker)
Similar to
isInfoEnabled() method except that the marker
data is also taken into consideration. |
boolean |
isTraceEnabled()
Returns
true if the logger instance has TRACE level logging enabled. |
boolean |
isTraceEnabled(org.slf4j.Marker marker)
Similar to
isTraceEnabled() method except that the
marker data is also taken into account. |
boolean |
isWarnEnabled()
Returns
true if the logger instance has WARN level logging enabled. |
boolean |
isWarnEnabled(org.slf4j.Marker marker)
Similar to
isWarnEnabled() method except that the marker
data is also taken into consideration. |
void |
trace(org.slf4j.Marker marker,
java.lang.String message)
Logs a message with the TRACE level.
|
void |
trace(org.slf4j.Marker marker,
java.lang.String message,
java.lang.Object... args)
This method is similar to
trace(String, Object...) method except that the
marker data is also taken into consideration. |
void |
trace(org.slf4j.Marker marker,
java.lang.String message,
java.lang.Throwable error)
Logs a message with the TRACE level, with the given error.
|
void |
trace(java.lang.String message)
Logs a message with the TRACE level.
|
void |
trace(java.lang.String message,
java.lang.Object... args)
Logs a message with the TRACE level.
|
void |
trace(java.lang.String message,
java.util.function.Supplier<?>... args)
Log a message with the TRACE level.
|
void |
trace(java.lang.String message,
java.lang.Throwable error)
Logs a message with the TRACE level, with the given error.
|
void |
trace(java.util.function.Supplier<java.lang.String> msgSupplier)
Log a message with the TRACE level.
|
org.slf4j.Logger |
underlying()
Get the underlying SLF4J logger.
|
void |
warn(org.slf4j.Marker marker,
java.lang.String message)
Log a message with the WARN level.
|
void |
warn(org.slf4j.Marker marker,
java.lang.String message,
java.lang.Object... args)
Log a message with the WARN level.
|
void |
warn(org.slf4j.Marker marker,
java.lang.String message,
java.lang.Throwable error)
Log a message with the WARN level, with the given error.
|
void |
warn(java.lang.String message)
Log a message with the WARN level.
|
void |
warn(java.lang.String message,
java.lang.Object... args)
Log a message with the WARN level.
|
void |
warn(java.lang.String message,
java.util.function.Supplier<?>... args)
Log a message with the WARN level.
|
void |
warn(java.lang.String message,
java.lang.Throwable error)
Log a message with the WARN level, with the given error.
|
void |
warn(java.util.function.Supplier<java.lang.String> msgSupplier)
Log a message with the WARN level.
|
public org.slf4j.Logger underlying()
public boolean isTraceEnabled()
true
if the logger instance has TRACE level logging enabled.true
if the logger instance has TRACE level logging enabled.public boolean isTraceEnabled(org.slf4j.Marker marker)
isTraceEnabled()
method except that the
marker data is also taken into account.marker
- The marker data to take into considerationpublic boolean isDebugEnabled()
true
if the logger instance has DEBUG level logging enabled.true
if the logger instance has DEBUG level logging enabled.public boolean isDebugEnabled(org.slf4j.Marker marker)
isDebugEnabled()
method except that the
marker data is also taken into account.marker
- The marker data to take into considerationpublic boolean isInfoEnabled()
true
if the logger instance has INFO level logging enabled.true
if the logger instance has INFO level logging enabled.public boolean isInfoEnabled(org.slf4j.Marker marker)
isInfoEnabled()
method except that the marker
data is also taken into consideration.marker
- The marker data to take into considerationpublic boolean isWarnEnabled()
true
if the logger instance has WARN level logging enabled.true
if the logger instance has WARN level logging enabled.public boolean isWarnEnabled(org.slf4j.Marker marker)
isWarnEnabled()
method except that the marker
data is also taken into consideration.marker
- The marker data to take into considerationpublic boolean isErrorEnabled()
true
if the logger instance has ERROR level logging enabled.true
if the logger instance has ERROR level logging enabled.public boolean isErrorEnabled(org.slf4j.Marker marker)
isErrorEnabled()
method except that the
marker data is also taken into consideration.marker
- The marker data to take into considerationpublic void trace(java.lang.String message)
message
- message to logpublic void trace(java.util.function.Supplier<java.lang.String> msgSupplier)
msgSupplier
- Supplier
that contains message to logpublic void trace(org.slf4j.Marker marker, java.lang.String message)
marker
- the marker data specific to this log statementmessage
- message to logpublic void trace(java.lang.String message, java.lang.Object... args)
message
- message to logargs
- The arguments to apply to the message stringpublic void trace(java.lang.String message, java.util.function.Supplier<?>... args)
message
- message to logargs
- Suppliers that contain arguments to apply to the message Stringpublic void trace(org.slf4j.Marker marker, java.lang.String message, java.lang.Object... args)
trace(String, Object...)
method except that the
marker data is also taken into consideration.marker
- the marker data specific to this log statementmessage
- message to logargs
- The arguments to apply to the message stringpublic void trace(java.lang.String message, java.lang.Throwable error)
message
- message to logerror
- associated exceptionpublic void trace(org.slf4j.Marker marker, java.lang.String message, java.lang.Throwable error)
marker
- the marker data specific to this log statementmessage
- message to logerror
- associated exceptionpublic void debug(java.lang.String message)
message
- Message to logpublic void debug(java.util.function.Supplier<java.lang.String> msgSupplier)
msgSupplier
- Supplier
that contains message to logpublic void debug(org.slf4j.Marker marker, java.lang.String message)
marker
- the marker data specific to this log statementmessage
- Message to logpublic void debug(java.lang.String message, java.lang.Object... args)
message
- Message to logargs
- The arguments to apply to the message stringpublic void debug(java.lang.String message, java.util.function.Supplier<?>... args)
message
- message to logargs
- Suppliers that contain arguments to apply to the message Stringpublic void debug(org.slf4j.Marker marker, java.lang.String message, java.lang.Object... args)
marker
- the marker data specific to this log statementmessage
- Message to logargs
- The arguments to apply to the message stringpublic void debug(java.lang.String message, java.lang.Throwable error)
message
- Message to logerror
- associated exceptionpublic void debug(org.slf4j.Marker marker, java.lang.String message, java.lang.Throwable error)
marker
- the marker data specific to this log statementmessage
- Message to logerror
- associated exceptionpublic void info(java.lang.String message)
message
- message to logpublic void info(java.util.function.Supplier<java.lang.String> msgSupplier)
msgSupplier
- Supplier
that contains message to logpublic void info(org.slf4j.Marker marker, java.lang.String message)
marker
- the marker data specific to this log statementmessage
- message to logpublic void info(java.lang.String message, java.lang.Object... args)
message
- message to logargs
- The arguments to apply to the message stringpublic void info(java.lang.String message, java.util.function.Supplier<?>... args)
message
- message to logargs
- Suppliers that contain arguments to apply to the message Stringpublic void info(org.slf4j.Marker marker, java.lang.String message, java.lang.Object... args)
marker
- the marker data specific to this log statementmessage
- message to logargs
- The arguments to apply to the message stringpublic void info(java.lang.String message, java.lang.Throwable error)
message
- message to logerror
- associated exceptionpublic void info(org.slf4j.Marker marker, java.lang.String message, java.lang.Throwable error)
marker
- the marker data specific to this log statementmessage
- message to logerror
- associated exceptionpublic void warn(java.lang.String message)
message
- message to logpublic void warn(java.util.function.Supplier<java.lang.String> msgSupplier)
msgSupplier
- Supplier
that contains message to logpublic void warn(org.slf4j.Marker marker, java.lang.String message)
marker
- the marker data specific to this log statementmessage
- message to logpublic void warn(java.lang.String message, java.lang.Object... args)
message
- message to logargs
- The arguments to apply to the message stringpublic void warn(java.lang.String message, java.util.function.Supplier<?>... args)
message
- message to logargs
- Suppliers that contain arguments to apply to the message Stringpublic void warn(org.slf4j.Marker marker, java.lang.String message, java.lang.Object... args)
marker
- the marker data specific to this log statementmessage
- message to logargs
- The arguments to apply to the message stringpublic void warn(java.lang.String message, java.lang.Throwable error)
message
- message to logerror
- associated exceptionpublic void warn(org.slf4j.Marker marker, java.lang.String message, java.lang.Throwable error)
marker
- the marker data specific to this log statementmessage
- message to logerror
- associated exceptionpublic void error(java.lang.String message)
message
- message to logpublic void error(java.util.function.Supplier<java.lang.String> msgSupplier)
msgSupplier
- Supplier
that contains message to logpublic void error(org.slf4j.Marker marker, java.lang.String message)
marker
- the marker data specific to this log statementmessage
- message to logpublic void error(java.lang.String message, java.lang.Object... args)
message
- message to logargs
- The arguments to apply to the message stringpublic void error(java.lang.String message, java.util.function.Supplier<?>... args)
message
- message to logargs
- Suppliers that contain arguments to apply to the message Stringpublic void error(org.slf4j.Marker marker, java.lang.String message, java.lang.Object... args)
marker
- the marker data specific to this log statementmessage
- message to logargs
- The arguments to apply to the message stringpublic void error(java.lang.String message, java.lang.Throwable error)
message
- message to logerror
- associated exceptionpublic void error(org.slf4j.Marker marker, java.lang.String message, java.lang.Throwable error)
marker
- the marker data specific to this log statementmessage
- message to logerror
- associated exception