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

Type Members

  1. class ColoredLevel extends ClassicConverter

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

Value Members

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

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

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

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

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

    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. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  10. def configure(properties: Map[String, String] = Map.empty, levels: Map[String, Level] = Map.empty, mode: 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. final def eq(arg0: AnyRef): Boolean

    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[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  18. final def getClass(): Class[_]

    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. def 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. def 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. def 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. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  27. def 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. def 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: org.slf4j.Logger

    The 'application' logger.

    The 'application' logger.

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

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

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

    Definition Classes
    AnyRef
  33. def shutdown(): Unit

    Shutdown the logger infrastructure.

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

    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: org.slf4j.Logger

    The underlying SLF4J Logger.

    The underlying SLF4J Logger.

    Definition Classes
    LoggerLike
  39. final def wait(): Unit

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

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

    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

Ungrouped