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(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.lang.Throwable error)
Logs a message with the DEBUG 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.lang.Throwable error)
Log a message with the ERROR 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.lang.Throwable error)
Logs a message with the INFO level, with the given error.
|
boolean |
isDebugEnabled()
Returns
true if the logger instance has DEBUG level logging enabled. |
boolean |
isErrorEnabled()
Returns
true if the logger instance has ERROR level logging enabled. |
boolean |
isInfoEnabled()
Returns
true if the logger instance has INFO level logging enabled. |
boolean |
isTraceEnabled()
Returns
true if the logger instance has TRACE level logging enabled. |
boolean |
isWarnEnabled()
Returns
true if the logger instance has WARN level logging enabled. |
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.lang.Throwable error)
Logs a message with the TRACE level, with the given error.
|
org.slf4j.Logger |
underlying()
Get the underlying SLF4J logger.
|
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.lang.Throwable error)
Log a message with the WARN level, with the given error.
|
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 isDebugEnabled()
true
if the logger instance has DEBUG level logging enabled.true
if the logger instance has DEBUG level logging enabled.public boolean isInfoEnabled()
true
if the logger instance has INFO level logging enabled.true
if the logger instance has INFO level logging enabled.public boolean isWarnEnabled()
true
if the logger instance has WARN level logging enabled.true
if the logger instance has WARN level logging enabled.public boolean isErrorEnabled()
true
if the logger instance has ERROR level logging enabled.true
if the logger instance has ERROR level logging enabled.public void trace(java.lang.String message)
message
- 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.lang.Throwable error)
message
- message to logerror
- associated exceptionpublic void debug(java.lang.String message)
message
- 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.lang.Throwable error)
message
- Message to logerror
- associated exceptionpublic void info(java.lang.String message)
message
- 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.lang.Throwable error)
message
- message to logerror
- associated exceptionpublic void warn(java.lang.String message)
message
- 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.lang.Throwable error)
message
- message to logerror
- associated exceptionpublic void error(java.lang.String message)
message
- 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.lang.Throwable error)
message
- message to logerror
- associated exception