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
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.
Logs a message with the DEBUG level.
Logs a message with the DEBUG level.
the message to log
the implicit marker context, if defined.
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.
Logs a message with the ERROR level.
Logs a message with the ERROR level.
the message to log
the implicit marker context, if defined.
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.
Logs a message with the INFO level.
Logs a message with the INFO level.
the message to log
the implicit marker context, if defined.
true if the logger instance is enabled for the DEBUG level.
true if the logger instance is enabled for the DEBUG level.
true if the logger instance is enabled for the ERROR level.
true if the logger instance is enabled for the ERROR level.
true if the logger instance is enabled for the INFO level.
true if the logger instance is enabled for the INFO level.
true if the logger instance is enabled for the TRACE level.
true if the logger instance is enabled for the TRACE level.
true if the logger instance is enabled for the WARN level.
true if the logger instance is enabled for the WARN level.
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.
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.
Logs a message with the TRACE level.
Logs a message with the TRACE level.
the message to log
the implicit marker context, if defined.
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 WARN level.
Logs a message with the WARN level.
the message to log
the associated exception
the implicit marker context, if defined.
Logs a message with the WARN level.
Logs a message with the WARN level.
the message to log
the implicit marker context, if defined.
High-level API for logging operations.
For example, logging with the default application logger:
Logger.info("Hello!")Logging with a custom logger: