Object/Class

play.api

Logger

Related Docs: class Logger | package api

Permalink

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
Visibility
  1. Public
  2. All

Value Members

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. def apply[T](clazz: Class[T]): Logger

    Permalink

    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

    Permalink

    Obtains a logger instance.

    Obtains a logger instance.

    name

    the name of the logger

    returns

    a logger

  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def debug(message: ⇒ String, error: ⇒ Throwable): Unit

    Permalink

    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
  9. def debug(message: ⇒ String): Unit

    Permalink

    Logs a message with the DEBUG level.

    Logs a message with the DEBUG level.

    message

    the message to log

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

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

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

    Permalink

    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
  13. def error(message: ⇒ String): Unit

    Permalink

    Logs a message with the ERROR level.

    Logs a message with the ERROR level.

    message

    the message to log

    Definition Classes
    LoggerLike
  14. def finalize(): Unit

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

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

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

    Permalink

    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
  18. def info(message: ⇒ String): Unit

    Permalink

    Logs a message with the INFO level.

    Logs a message with the INFO level.

    message

    the message to log

    Definition Classes
    LoggerLike
  19. def isDebugEnabled: Boolean

    Permalink

    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
  20. def isErrorEnabled: Boolean

    Permalink

    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
  21. def isInfoEnabled: Boolean

    Permalink

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

    Permalink
    Definition Classes
    Any
  23. def isTraceEnabled: Boolean

    Permalink

    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
  24. def isWarnEnabled: Boolean

    Permalink

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

    Permalink

    The 'application' logger.

    The 'application' logger.

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

    Permalink
    Definition Classes
    AnyRef
  27. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  28. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  29. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  30. def toString(): String

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

    Permalink

    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
  32. def trace(message: ⇒ String): Unit

    Permalink

    Logs a message with the TRACE level.

    Logs a message with the TRACE level.

    message

    the message to log

    Definition Classes
    LoggerLike
  33. lazy val underlyingLogger: org.slf4j.Logger

    Permalink

    The underlying SLF4J Logger.

    The underlying SLF4J Logger.

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. def warn(message: ⇒ String, error: ⇒ Throwable): Unit

    Permalink

    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
  38. def warn(message: ⇒ String): Unit

    Permalink

    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