object Logger
Ordering
- Alphabetic
- By Inheritance
Inherited
- Logger
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- def applicationMode: Option[Mode]
The global application mode currently being used by the logging API.
- def apply(clazz: Class[_]): Logger
Obtains a logger instance.
Obtains a logger instance.
- clazz
a class whose name will be used as logger name
- returns
a logger
- def apply(name: String): Logger
Obtains a logger instance.
Obtains a logger instance.
- name
the name of the logger
- returns
a logger
- def setApplicationMode(mode: Mode): Unit
Set the global application mode used for logging.
Set the global application mode used for logging. Used when the Play application starts.
- def unsetApplicationMode(): Unit
Unset the global application mode.
Unset the global application mode. Used when the application shuts down.
If multiple applications are running
High-level API for logging operations.
For example, logging with the default application logger:
Logger.info("Hello!")
Logging with a custom logger: