Package play
Class Logger.ALogger
- Object
-
- play.Logger.ALogger
-
-
Constructor Summary
Constructors Constructor Description ALogger(play.api.Logger logger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
debug(String message)
Logs a message with the DEBUG level.void
debug(String message, Object... args)
Logs a message with the DEBUG level.void
debug(String message, Throwable error)
Logs a message with the DEBUG level, with the given error.void
debug(String message, Supplier<?>... args)
Log a message with the DEBUG level.void
debug(Supplier<String> msgSupplier)
Log a message with the DEBUG level.void
debug(org.slf4j.Marker marker, String message)
Logs a message with the DEBUG level.void
debug(org.slf4j.Marker marker, String message, Object... args)
Logs a message with the DEBUG level.void
debug(org.slf4j.Marker marker, String message, Throwable error)
Logs a message with the DEBUG level, with the given error.void
error(String message)
Log a message with the ERROR level.void
error(String message, Object... args)
Log a message with the ERROR level.void
error(String message, Throwable error)
Log a message with the ERROR level, with the given error.void
error(String message, Supplier<?>... args)
Log a message with the ERROR level.void
error(Supplier<String> msgSupplier)
Log a message with the ERROR level.void
error(org.slf4j.Marker marker, String message)
Log a message with the ERROR level.void
error(org.slf4j.Marker marker, String message, Object... args)
Log a message with the ERROR level.void
error(org.slf4j.Marker marker, String message, Throwable error)
Log a message with the ERROR level, with the given error.void
info(String message)
Logs a message with the INFO level.void
info(String message, Object... args)
Logs a message with the INFO level.void
info(String message, Throwable error)
Logs a message with the INFO level, with the given error.void
info(String message, Supplier<?>... args)
Log a message with the INFO level.void
info(Supplier<String> msgSupplier)
Log a message with the INFO level.void
info(org.slf4j.Marker marker, String message)
Logs a message with the INFO level.void
info(org.slf4j.Marker marker, String message, Object... args)
Logs a message with the INFO level.void
info(org.slf4j.Marker marker, String message, Throwable error)
Logs a message with the INFO level, with the given error.boolean
isDebugEnabled()
Returnstrue
if the logger instance has DEBUG level logging enabled.boolean
isDebugEnabled(org.slf4j.Marker marker)
Similar toisDebugEnabled()
method except that the marker data is also taken into account.boolean
isErrorEnabled()
Returnstrue
if the logger instance has ERROR level logging enabled.boolean
isErrorEnabled(org.slf4j.Marker marker)
Similar toisErrorEnabled()
method except that the marker data is also taken into consideration.boolean
isInfoEnabled()
Returnstrue
if the logger instance has INFO level logging enabled.boolean
isInfoEnabled(org.slf4j.Marker marker)
Similar toisInfoEnabled()
method except that the marker data is also taken into consideration.boolean
isTraceEnabled()
Returnstrue
if the logger instance has TRACE level logging enabled.boolean
isTraceEnabled(org.slf4j.Marker marker)
Similar toisTraceEnabled()
method except that the marker data is also taken into account.boolean
isWarnEnabled()
Returnstrue
if the logger instance has WARN level logging enabled.boolean
isWarnEnabled(org.slf4j.Marker marker)
Similar toisWarnEnabled()
method except that the marker data is also taken into consideration.void
trace(String message)
Logs a message with the TRACE level.void
trace(String message, Object... args)
Logs a message with the TRACE level.void
trace(String message, Throwable error)
Logs a message with the TRACE level, with the given error.void
trace(String message, Supplier<?>... args)
Log a message with the TRACE level.void
trace(Supplier<String> msgSupplier)
Log a message with the TRACE level.void
trace(org.slf4j.Marker marker, String message)
Logs a message with the TRACE level.void
trace(org.slf4j.Marker marker, String message, Object... args)
This method is similar totrace(String, Object...)
method except that the marker data is also taken into consideration.void
trace(org.slf4j.Marker marker, String message, Throwable error)
Logs a message with the TRACE level, with the given error.org.slf4j.Logger
underlying()
Get the underlying SLF4J logger.void
warn(String message)
Log a message with the WARN level.void
warn(String message, Object... args)
Log a message with the WARN level.void
warn(String message, Throwable error)
Log a message with the WARN level, with the given error.void
warn(String message, Supplier<?>... args)
Log a message with the WARN level.void
warn(Supplier<String> msgSupplier)
Log a message with the WARN level.void
warn(org.slf4j.Marker marker, String message)
Log a message with the WARN level.void
warn(org.slf4j.Marker marker, String message, Object... args)
Log a message with the WARN level.void
warn(org.slf4j.Marker marker, String message, Throwable error)
Log a message with the WARN level, with the given error.
-
-
-
Method Detail
-
underlying
public org.slf4j.Logger underlying()
Get the underlying SLF4J logger.- Returns:
- the SLF4J logger
-
isTraceEnabled
public boolean isTraceEnabled()
Returnstrue
if the logger instance has TRACE level logging enabled.- Returns:
true
if the logger instance has TRACE level logging enabled.
-
isTraceEnabled
public boolean isTraceEnabled(org.slf4j.Marker marker)
Similar toisTraceEnabled()
method except that the marker data is also taken into account.- Parameters:
marker
- The marker data to take into consideration- Returns:
- True if this Logger is enabled for the TRACE level, false otherwise.
-
isDebugEnabled
public boolean isDebugEnabled()
Returnstrue
if the logger instance has DEBUG level logging enabled.- Returns:
true
if the logger instance has DEBUG level logging enabled.
-
isDebugEnabled
public boolean isDebugEnabled(org.slf4j.Marker marker)
Similar toisDebugEnabled()
method except that the marker data is also taken into account.- Parameters:
marker
- The marker data to take into consideration- Returns:
- True if this Logger is enabled for the DEBUG level, false otherwise.
-
isInfoEnabled
public boolean isInfoEnabled()
Returnstrue
if the logger instance has INFO level logging enabled.- Returns:
true
if the logger instance has INFO level logging enabled.
-
isInfoEnabled
public boolean isInfoEnabled(org.slf4j.Marker marker)
Similar toisInfoEnabled()
method except that the marker data is also taken into consideration.- Parameters:
marker
- The marker data to take into consideration- Returns:
- true if this logger is warn enabled, false otherwise
-
isWarnEnabled
public boolean isWarnEnabled()
Returnstrue
if the logger instance has WARN level logging enabled.- Returns:
true
if the logger instance has WARN level logging enabled.
-
isWarnEnabled
public boolean isWarnEnabled(org.slf4j.Marker marker)
Similar toisWarnEnabled()
method except that the marker data is also taken into consideration.- Parameters:
marker
- The marker data to take into consideration- Returns:
- True if this Logger is enabled for the WARN level, false otherwise.
-
isErrorEnabled
public boolean isErrorEnabled()
Returnstrue
if the logger instance has ERROR level logging enabled.- Returns:
true
if the logger instance has ERROR level logging enabled.
-
isErrorEnabled
public boolean isErrorEnabled(org.slf4j.Marker marker)
Similar toisErrorEnabled()
method except that the marker data is also taken into consideration.- Parameters:
marker
- The marker data to take into consideration- Returns:
- True if this Logger is enabled for the ERROR level, false otherwise.
-
trace
public void trace(String message)
Logs a message with the TRACE level.- Parameters:
message
- message to log
-
trace
public void trace(Supplier<String> msgSupplier)
Log a message with the TRACE level.- Parameters:
msgSupplier
-Supplier
that contains message to log
-
trace
public void trace(org.slf4j.Marker marker, String message)
Logs a message with the TRACE level.- Parameters:
marker
- the marker data specific to this log statementmessage
- message to log
-
trace
public void trace(String message, Object... args)
Logs a message with the TRACE level.- Parameters:
message
- message to logargs
- The arguments to apply to the message string
-
trace
public void trace(String message, Supplier<?>... args)
Log a message with the TRACE level.- Parameters:
message
- message to logargs
- Suppliers that contain arguments to apply to the message String
-
trace
public void trace(org.slf4j.Marker marker, String message, Object... args)
This method is similar totrace(String, Object...)
method except that the marker data is also taken into consideration.- Parameters:
marker
- the marker data specific to this log statementmessage
- message to logargs
- The arguments to apply to the message string
-
trace
public void trace(String message, Throwable error)
Logs a message with the TRACE level, with the given error.- Parameters:
message
- message to logerror
- associated exception
-
trace
public void trace(org.slf4j.Marker marker, String message, Throwable error)
Logs a message with the TRACE level, with the given error.- Parameters:
marker
- the marker data specific to this log statementmessage
- message to logerror
- associated exception
-
debug
public void debug(String message)
Logs a message with the DEBUG level.- Parameters:
message
- Message to log
-
debug
public void debug(Supplier<String> msgSupplier)
Log a message with the DEBUG level.- Parameters:
msgSupplier
-Supplier
that contains message to log
-
debug
public void debug(org.slf4j.Marker marker, String message)
Logs a message with the DEBUG level.- Parameters:
marker
- the marker data specific to this log statementmessage
- Message to log
-
debug
public void debug(String message, Object... args)
Logs a message with the DEBUG level.- Parameters:
message
- Message to logargs
- The arguments to apply to the message string
-
debug
public void debug(String message, Supplier<?>... args)
Log a message with the DEBUG level.- Parameters:
message
- message to logargs
- Suppliers that contain arguments to apply to the message String
-
debug
public void debug(org.slf4j.Marker marker, String message, Object... args)
Logs a message with the DEBUG level.- Parameters:
marker
- the marker data specific to this log statementmessage
- Message to logargs
- The arguments to apply to the message string
-
debug
public void debug(String message, Throwable error)
Logs a message with the DEBUG level, with the given error.- Parameters:
message
- Message to logerror
- associated exception
-
debug
public void debug(org.slf4j.Marker marker, String message, Throwable error)
Logs a message with the DEBUG level, with the given error.- Parameters:
marker
- the marker data specific to this log statementmessage
- Message to logerror
- associated exception
-
info
public void info(String message)
Logs a message with the INFO level.- Parameters:
message
- message to log
-
info
public void info(Supplier<String> msgSupplier)
Log a message with the INFO level.- Parameters:
msgSupplier
-Supplier
that contains message to log
-
info
public void info(org.slf4j.Marker marker, String message)
Logs a message with the INFO level.- Parameters:
marker
- the marker data specific to this log statementmessage
- message to log
-
info
public void info(String message, Object... args)
Logs a message with the INFO level.- Parameters:
message
- message to logargs
- The arguments to apply to the message string
-
info
public void info(String message, Supplier<?>... args)
Log a message with the INFO level.- Parameters:
message
- message to logargs
- Suppliers that contain arguments to apply to the message String
-
info
public void info(org.slf4j.Marker marker, String message, Object... args)
Logs a message with the INFO level.- Parameters:
marker
- the marker data specific to this log statementmessage
- message to logargs
- The arguments to apply to the message string
-
info
public void info(String message, Throwable error)
Logs a message with the INFO level, with the given error.- Parameters:
message
- message to logerror
- associated exception
-
info
public void info(org.slf4j.Marker marker, String message, Throwable error)
Logs a message with the INFO level, with the given error.- Parameters:
marker
- the marker data specific to this log statementmessage
- message to logerror
- associated exception
-
warn
public void warn(String message)
Log a message with the WARN level.- Parameters:
message
- message to log
-
warn
public void warn(Supplier<String> msgSupplier)
Log a message with the WARN level.- Parameters:
msgSupplier
-Supplier
that contains message to log
-
warn
public void warn(org.slf4j.Marker marker, String message)
Log a message with the WARN level.- Parameters:
marker
- the marker data specific to this log statementmessage
- message to log
-
warn
public void warn(String message, Object... args)
Log a message with the WARN level.- Parameters:
message
- message to logargs
- The arguments to apply to the message string
-
warn
public void warn(String message, Supplier<?>... args)
Log a message with the WARN level.- Parameters:
message
- message to logargs
- Suppliers that contain arguments to apply to the message String
-
warn
public void warn(org.slf4j.Marker marker, String message, Object... args)
Log a message with the WARN level.- Parameters:
marker
- the marker data specific to this log statementmessage
- message to logargs
- The arguments to apply to the message string
-
warn
public void warn(String message, Throwable error)
Log a message with the WARN level, with the given error.- Parameters:
message
- message to logerror
- associated exception
-
warn
public void warn(org.slf4j.Marker marker, String message, Throwable error)
Log a message with the WARN level, with the given error.- Parameters:
marker
- the marker data specific to this log statementmessage
- message to logerror
- associated exception
-
error
public void error(String message)
Log a message with the ERROR level.- Parameters:
message
- message to log
-
error
public void error(Supplier<String> msgSupplier)
Log a message with the ERROR level.- Parameters:
msgSupplier
-Supplier
that contains message to log
-
error
public void error(org.slf4j.Marker marker, String message)
Log a message with the ERROR level.- Parameters:
marker
- the marker data specific to this log statementmessage
- message to log
-
error
public void error(String message, Object... args)
Log a message with the ERROR level.- Parameters:
message
- message to logargs
- The arguments to apply to the message string
-
error
public void error(String message, Supplier<?>... args)
Log a message with the ERROR level.- Parameters:
message
- message to logargs
- Suppliers that contain arguments to apply to the message String
-
error
public void error(org.slf4j.Marker marker, String message, Object... args)
Log a message with the ERROR level.- Parameters:
marker
- the marker data specific to this log statementmessage
- message to logargs
- The arguments to apply to the message string
-
error
public void error(String message, Throwable error)
Log a message with the ERROR level, with the given error.- Parameters:
message
- message to logerror
- associated exception
-
-