play.api

Logger

Related Docs: class Logger | package api

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.

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

    Used for example as:

    %coloredLevel %logger{15} - %message%n%xException{5}

Value Members

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

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Definition Classes
    AnyRef → Any
  4. 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

  5. def apply(name: String): Logger

    Obtains a logger instance.

    Obtains a logger instance.

    name

    the name of the logger

    returns

    a logger

  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def configure(properties: Map[String, String], config: Option[URL]): Unit

    Reconfigures the underlying logback infrastructure.

  9. def configure(env: Environment): Unit

    Reconfigures the underlying logback infrastructure.

  10. 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
  11. 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
  12. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  14. 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
  15. 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
  16. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  18. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  19. 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
  20. 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
  21. def init(rootPath: File, mode: Mode.Mode): Unit

    Initialize the Logger when there's no application ClassLoader available.

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

    Definition Classes
    Any
  26. 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
  27. 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
  28. val logger: org.slf4j.Logger

    The 'application' logger.

    The 'application' logger.

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

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

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

    Definition Classes
    AnyRef
  32. def shutdown(): Unit

    Shutdown the logger infrastructure.

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

    Definition Classes
    AnyRef
  34. def toString(): String

    Definition Classes
    AnyRef → Any
  35. 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
  36. 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
  37. lazy val underlyingLogger: org.slf4j.Logger

    The underlying SLF4J Logger.

    The underlying SLF4J Logger.

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. 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
  42. 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