The global application mode currently being used by the logging API.
Obtains a logger instance.
Obtains a logger instance.
a class whose name will be used as logger name
a logger
Obtains a logger instance.
Obtains a logger instance.
the name of the logger
a logger
the underlying SL4FJ logger
the underlying SL4FJ logger
Set the global application mode used for logging.
Set the global application mode used for logging. Used when the Play application starts.
The underlying SLF4J Logger.
The underlying SLF4J Logger.
Unset the global application mode.
Unset the global application mode. Used when the application shuts down.
If multiple applications are running
Logs a message with the DEBUG
level.
Logs a message with the DEBUG
level.
the message to log
the associated exception
the implicit marker context, if defined.
(Since version 2.7.0) Create an instance of via Logger(...) and use the same-named method. Or use SLF4J directly.
Logs a message with the DEBUG
level.
Logs a message with the DEBUG
level.
the message to log
the implicit marker context, if defined.
(Since version 2.7.0) Create an instance of via Logger(...) and use the same-named method. Or use SLF4J directly.
(Since version 2.7.0) Create an instance of via Logger(...) and use the same-named method. Or use SLF4J directly.
Logs a message with the ERROR
level.
Logs a message with the ERROR
level.
the message to log
the associated exception
the implicit marker context, if defined.
(Since version 2.7.0) Create an instance of via Logger(...) and use the same-named method. Or use SLF4J directly.
Logs a message with the ERROR
level.
Logs a message with the ERROR
level.
the message to log
the implicit marker context, if defined.
(Since version 2.7.0) Create an instance of via Logger(...) and use the same-named method. Or use SLF4J directly.
Get a logger that only works when the application is in the given mode(s).
Get a logger that only works when the application is in the given mode(s).
If the global application mode has not been set (by calling Logger.setApplicationMode), this has no effect.
Logs a message with the INFO
level.
Logs a message with the INFO
level.
the message to log
the associated exception
the implicit marker context, if defined.
(Since version 2.7.0) Create an instance of via Logger(...) and use the same-named method. Or use SLF4J directly.
Logs a message with the INFO
level.
Logs a message with the INFO
level.
the message to log
the implicit marker context, if defined.
(Since version 2.7.0) Create an instance of via Logger(...) and use the same-named method. Or use SLF4J directly.
true
if the logger instance is enabled for the DEBUG
level.
true
if the logger instance is enabled for the DEBUG
level.
(Since version 2.7.0) Create an instance of via Logger(...) and use the same-named method. Or use SLF4J directly.
true
if the logger instance is enabled for the ERROR
level.
true
if the logger instance is enabled for the ERROR
level.
(Since version 2.7.0) Create an instance of via Logger(...) and use the same-named method. Or use SLF4J directly.
true
if the logger instance is enabled for the INFO
level.
true
if the logger instance is enabled for the INFO
level.
(Since version 2.7.0) Create an instance of via Logger(...) and use the same-named method. Or use SLF4J directly.
true
if the logger instance is enabled for the TRACE
level.
true
if the logger instance is enabled for the TRACE
level.
(Since version 2.7.0) Create an instance of via Logger(...) and use the same-named method. Or use SLF4J directly.
true
if the logger instance is enabled for the WARN
level.
true
if the logger instance is enabled for the WARN
level.
(Since version 2.7.0) Create an instance of via Logger(...) and use the same-named method. Or use SLF4J directly.
Logs a message with the TRACE
level.
Logs a message with the TRACE
level.
the message to log
the associated exception
the implicit marker context, if defined.
(Since version 2.7.0) Create an instance of via Logger(...) and use the same-named method. Or use SLF4J directly.
Logs a message with the TRACE
level.
Logs a message with the TRACE
level.
the message to log
the implicit marker context, if defined.
(Since version 2.7.0) Create an instance of via Logger(...) and use the same-named method. Or use SLF4J directly.
Logs a message with the WARN
level.
Logs a message with the WARN
level.
the message to log
the associated exception
the implicit marker context, if defined.
(Since version 2.7.0) Create an instance of via Logger(...) and use the same-named method. Or use SLF4J directly.
Logs a message with the WARN
level.
Logs a message with the WARN
level.
the message to log
the implicit marker context, if defined.
(Since version 2.7.0) Create an instance of via Logger(...) and use the same-named method. Or use SLF4J directly.
High-level API for logging operations.
For example, logging with the default application logger:
Logger.info("Hello!")
Logging with a custom logger: