Logger

play.api.Logger
See theLogger companion object
class Logger extends LoggerLike

A Play logger.

Value parameters

logger

the underlying SL4FJ logger

Attributes

Companion
object
Graph
Supertypes
trait LoggerLike
class Object
trait Matchable
class Any

Members list

Value members

Constructors

def this(logger: Logger)

Concrete methods

override def enabled: Boolean

Attributes

Definition Classes
def forMode(mode: Mode*): Logger

Get a logger that only works when the application is in the given mode(s).

Get a logger that only works when the application is in the given mode(s).

If the global application mode has not been set (by calling Logger.setApplicationMode), this has no effect.

Attributes

Inherited methods

def debug(message: => String, error: => Throwable)(implicit mc: MarkerContext): Unit

Logs a message with the DEBUG level.

Logs a message with the DEBUG level.

Value parameters

error

the associated exception

mc

the implicit marker context, if defined.

message

the message to log

Attributes

Inherited from:
LoggerLike
def debug(message: => String)(implicit mc: MarkerContext): Unit

Logs a message with the DEBUG level.

Logs a message with the DEBUG level.

Value parameters

mc

the implicit marker context, if defined.

message

the message to log

Attributes

Inherited from:
LoggerLike
def error(message: => String, error: => Throwable)(implicit mc: MarkerContext): Unit

Logs a message with the ERROR level.

Logs a message with the ERROR level.

Value parameters

error

the associated exception

mc

the implicit marker context, if defined.

message

the message to log

Attributes

Inherited from:
LoggerLike
def error(message: => String)(implicit mc: MarkerContext): Unit

Logs a message with the ERROR level.

Logs a message with the ERROR level.

Value parameters

mc

the implicit marker context, if defined.

message

the message to log

Attributes

Inherited from:
LoggerLike
def info(message: => String, error: => Throwable)(implicit mc: MarkerContext): Unit

Logs a message with the INFO level.

Logs a message with the INFO level.

Value parameters

error

the associated exception

mc

the implicit marker context, if defined.

message

the message to log

Attributes

Inherited from:
LoggerLike
def info(message: => String)(implicit mc: MarkerContext): Unit

Logs a message with the INFO level.

Logs a message with the INFO level.

Value parameters

mc

the implicit marker context, if defined.

message

the message to log

Attributes

Inherited from:
LoggerLike
def isDebugEnabled(implicit mc: MarkerContext): Boolean

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

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

Attributes

Inherited from:
LoggerLike
def isErrorEnabled(implicit mc: MarkerContext): Boolean

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

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

Attributes

Inherited from:
LoggerLike
def isInfoEnabled(implicit mc: MarkerContext): Boolean

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

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

Attributes

Inherited from:
LoggerLike
def isTraceEnabled(implicit mc: MarkerContext): Boolean

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

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

Attributes

Inherited from:
LoggerLike
def isWarnEnabled(implicit mc: MarkerContext): Boolean

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

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

Attributes

Inherited from:
LoggerLike
def trace(message: => String, error: => Throwable)(implicit mc: MarkerContext): Unit

Logs a message with the TRACE level.

Logs a message with the TRACE level.

Value parameters

error

the associated exception

mc

the implicit marker context, if defined.

message

the message to log

Attributes

Inherited from:
LoggerLike
def trace(message: => String)(implicit mc: MarkerContext): Unit

Logs a message with the TRACE level.

Logs a message with the TRACE level.

Value parameters

mc

the implicit marker context, if defined.

message

the message to log

Attributes

Inherited from:
LoggerLike
def warn(message: => String, error: => Throwable)(implicit mc: MarkerContext): Unit

Logs a message with the WARN level.

Logs a message with the WARN level.

Value parameters

error

the associated exception

mc

the implicit marker context, if defined.

message

the message to log

Attributes

Inherited from:
LoggerLike
def warn(message: => String)(implicit mc: MarkerContext): Unit

Logs a message with the WARN level.

Logs a message with the WARN level.

Value parameters

mc

the implicit marker context, if defined.

message

the message to log

Attributes

Inherited from:
LoggerLike

Concrete fields

val logger: Logger

The underlying SLF4J Logger.

The underlying SLF4J Logger.

Attributes

Inherited fields

lazy val underlyingLogger: Logger

The underlying SLF4J Logger.

The underlying SLF4J Logger.

Attributes

Inherited from:
LoggerLike