play.api

Logger

object Logger extends LoggerLike

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!")
Linear Supertypes
LoggerLike, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Logger
  2. LoggerLike
  3. AnyRef
  4. Any
Visibility
  1. Public
  2. All

Type Members

  1. class ColoredLevel extends ClassicConverter

    A logback converter generating colored, lower-case level names.

Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  5. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  6. def apply [T] (clazz: Class[T]): Logger

    Obtains a logger instance.

    Obtains a logger instance.

    clazz

    a class whose name will be used as logger name

    returns

    a logger

  7. def apply (name: String): Logger

    Obtains a logger instance.

    Obtains a logger instance.

    name

    the name of the logger

    returns

    a logger

  8. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  9. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  10. def configure (properties: Map[String, String] = Map.empty, levels: Map[String, Level] = Map.empty, mode: Value): Unit

    Reconfigures the underlying logback infrastructure.

    Reconfigures the underlying logback infrastructure.

    properties

    these properties will be added to the logger context (for example application.home)

    See also

    http://logback.qos.ch/

  11. def debug (message: ⇒ String, error: ⇒ Throwable): Unit

    Logs a message with the DEBUG level.

    Logs a message with the DEBUG level.

    message

    the message to log

    error

    the associated exception

    Definition Classes
    LoggerLike
  12. def debug (message: ⇒ String): Unit

    Logs a message with the DEBUG level.

    Logs a message with the DEBUG level.

    message

    the message to log

    Definition Classes
    LoggerLike
  13. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  14. def equals (arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  15. def error (message: ⇒ String, error: ⇒ Throwable): Unit

    Logs a message with the ERROR level.

    Logs a message with the ERROR level.

    message

    the message to log

    error

    the associated exception

    Definition Classes
    LoggerLike
  16. def error (message: ⇒ String): Unit

    Logs a message with the ERROR level.

    Logs a message with the ERROR level.

    message

    the message to log

    Definition Classes
    LoggerLike
  17. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  18. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef → Any
  19. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  20. def info (message: ⇒ String, error: ⇒ Throwable): Unit

    Logs a message with the INFO level.

    Logs a message with the INFO level.

    message

    the message to log

    error

    the associated exception

    Definition Classes
    LoggerLike
  21. def info (message: ⇒ String): Unit

    Logs a message with the INFO level.

    Logs a message with the INFO level.

    message

    the message to log

    Definition Classes
    LoggerLike
  22. def init (home: File): Unit

    Initialize the Logger in a brut way.

  23. lazy val isDebugEnabled : Boolean

    true if the logger instance is enabled for the DEBUG level.

    true if the logger instance is enabled for the DEBUG level.

    Definition Classes
    LoggerLike
  24. lazy val isErrorEnabled : Boolean

    true if the logger instance is enabled for the ERROR level.

    true if the logger instance is enabled for the ERROR level.

    Definition Classes
    LoggerLike
  25. lazy val isInfoEnabled : Boolean

    true if the logger instance is enabled for the INFO level.

    true if the logger instance is enabled for the INFO level.

    Definition Classes
    LoggerLike
  26. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  27. lazy val isTraceEnabled : Boolean

    true if the logger instance is enabled for the TRACE level.

    true if the logger instance is enabled for the TRACE level.

    Definition Classes
    LoggerLike
  28. lazy val isWarnEnabled : Boolean

    true if the logger instance is enabled for the WARN level.

    true if the logger instance is enabled for the WARN level.

    Definition Classes
    LoggerLike
  29. val logger : Logger

    The 'application' logger.

    The 'application' logger.

    Definition Classes
    LoggerLoggerLike
  30. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  31. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  32. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  33. def shutdown (): Unit

    Shutdown the logger infrastructure.

  34. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  35. def toString (): String

    Definition Classes
    AnyRef → Any
  36. def trace (message: ⇒ String, error: ⇒ Throwable): Unit

    Logs a message with the TRACE level.

    Logs a message with the TRACE level.

    message

    the message to log

    error

    the associated exception

    Definition Classes
    LoggerLike
  37. def trace (message: ⇒ String): Unit

    Logs a message with the TRACE level.

    Logs a message with the TRACE level.

    message

    the message to log

    Definition Classes
    LoggerLike
  38. lazy val underlyingLogger : Logger

    The underlying SLF4J Logger.

    The underlying SLF4J Logger.

    Definition Classes
    LoggerLike
  39. def wait (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  40. def wait (arg0: Long, arg1: Int): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  41. def wait (arg0: Long): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  42. def warn (message: ⇒ String, error: ⇒ Throwable): Unit

    Logs a message with the WARN level.

    Logs a message with the WARN level.

    message

    the message to log

    error

    the associated exception

    Definition Classes
    LoggerLike
  43. def warn (message: ⇒ String): Unit

    Logs a message with the WARN level.

    Logs a message with the WARN level.

    message

    the message to log

    Definition Classes
    LoggerLike

Inherited from LoggerLike

Inherited from AnyRef

Inherited from Any