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!")
Source
Logger.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Logger
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. def applicationMode: Option[Mode]

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

  2. 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

  3. def apply(name: String): Logger

    Obtains a logger instance.

    Obtains a logger instance.

    name

    the name of the logger

    returns

    a logger

  4. 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.

  5. def unsetApplicationMode(): Unit

    Unset the global application mode.

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

    If multiple applications are running