Logger

play.api.Logger
See theLogger companion class
object Logger

High-level API for logging operations.

For example, logging with the default application logger:

Logger.info("Hello!")

Logging with a custom logger:

Logger("my.logger").info("Hello!")

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Logger.type

Members list

Value members

Concrete methods

The global application mode currently being used by the logging API.

The global application mode currently being used by the logging API.

Attributes

def apply(name: String): Logger

Obtains a logger instance.

Obtains a logger instance.

Value parameters

name

the name of the logger

Attributes

Returns

a logger

def apply(clazz: Class[_]): Logger

Obtains a logger instance.

Obtains a logger instance.

Value parameters

clazz

a class whose name will be used as logger name

Attributes

Returns

a logger

Set the global application mode used for logging. Used when the Play application starts.

Set the global application mode used for logging. Used when the Play application starts.

Attributes

Unset the global application mode. Used when the application shuts down.

Unset the global application mode. Used when the application shuts down.

If multiple applications are running

Attributes