LoggingAdapter

org.apache.pekko.event.LoggingAdapter

Logging wrapper to make nicer and optimize: provide template versions which evaluate .toString only if the log level is actually enabled. Typically used by obtaining an implementation from the Logging object:

val log = Logging(<bus>, <source object>)
...
log.info("hello world!")

All log-level methods support simple interpolation templates with up to four arguments placed by using {} within the template (first string argument):

log.error(exception, "Exception while processing {} in state {}", msg, state)

More than four arguments can be defined by using an Array with the method with one argument parameter.

Attributes

Source
Logging.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Type members

Types

type MDC = MDC

Attributes

Source
Logging.scala

Value members

Abstract methods

Attributes

Source
Logging.scala

Attributes

Source
Logging.scala

Attributes

Source
Logging.scala

Attributes

Source
Logging.scala
protected def notifyDebug(message: String): Unit

Attributes

Source
Logging.scala
protected def notifyError(message: String): Unit

Attributes

Source
Logging.scala
protected def notifyError(cause: Throwable, message: String): Unit

Attributes

Source
Logging.scala
protected def notifyInfo(message: String): Unit

Attributes

Source
Logging.scala
protected def notifyWarning(message: String): Unit

Attributes

Source
Logging.scala

Concrete methods

def debug(message: String): Unit

Log message at debug level.

Log message at debug level.

Attributes

See also
Source
Logging.scala
def debug(template: String, arg1: Any): Unit

Message template with 1 replacement argument.

Message template with 1 replacement argument.

If arg1 is an Array it will be expanded into replacement arguments, which is useful when there are more than four arguments.

Attributes

See also
Source
Logging.scala
def debug(template: String, arg1: Any, arg2: Any): Unit

Message template with 2 replacement arguments.

Message template with 2 replacement arguments.

Attributes

See also
Source
Logging.scala
def debug(template: String, arg1: Any, arg2: Any, arg3: Any): Unit

Message template with 3 replacement arguments.

Message template with 3 replacement arguments.

Attributes

See also
Source
Logging.scala
def debug(template: String, arg1: Any, arg2: Any, arg3: Any, arg4: Any): Unit

Message template with 4 replacement arguments.

Message template with 4 replacement arguments.

Attributes

See also
Source
Logging.scala
def error(cause: Throwable, message: String): Unit

Log message at error level, including the exception that caused the error.

Log message at error level, including the exception that caused the error.

Attributes

See also
Source
Logging.scala
def error(cause: Throwable, template: String, arg1: Any): Unit

Message template with 1 replacement argument.

Message template with 1 replacement argument.

If arg1 is an Array it will be expanded into replacement arguments, which is useful when there are more than four arguments.

Attributes

See also
Source
Logging.scala
def error(cause: Throwable, template: String, arg1: Any, arg2: Any): Unit

Message template with 2 replacement arguments.

Message template with 2 replacement arguments.

Attributes

See also
Source
Logging.scala
def error(cause: Throwable, template: String, arg1: Any, arg2: Any, arg3: Any): Unit

Message template with 3 replacement arguments.

Message template with 3 replacement arguments.

Attributes

See also
Source
Logging.scala
def error(cause: Throwable, template: String, arg1: Any, arg2: Any, arg3: Any, arg4: Any): Unit

Message template with 4 replacement arguments.

Message template with 4 replacement arguments.

Attributes

See also
Source
Logging.scala
def error(message: String): Unit

Log message at error level, without providing the exception that caused the error.

Log message at error level, without providing the exception that caused the error.

Attributes

See also
Source
Logging.scala
def error(template: String, arg1: Any): Unit

Message template with 1 replacement argument.

Message template with 1 replacement argument.

If arg1 is an Array it will be expanded into replacement arguments, which is useful when there are more than four arguments.

Attributes

See also
Source
Logging.scala
def error(template: String, arg1: Any, arg2: Any): Unit

Message template with 2 replacement arguments.

Message template with 2 replacement arguments.

Attributes

See also
Source
Logging.scala
def error(template: String, arg1: Any, arg2: Any, arg3: Any): Unit

Message template with 3 replacement arguments.

Message template with 3 replacement arguments.

Attributes

See also
Source
Logging.scala
def error(template: String, arg1: Any, arg2: Any, arg3: Any, arg4: Any): Unit

Message template with 4 replacement arguments.

Message template with 4 replacement arguments.

Attributes

See also
Source
Logging.scala
def format(t: String, arg: Any*): String

Attributes

Source
Logging.scala
def info(message: String): Unit

Log message at info level.

Log message at info level.

Attributes

See also
Source
Logging.scala
def info(template: String, arg1: Any): Unit

Message template with 1 replacement argument.

Message template with 1 replacement argument.

If arg1 is an Array it will be expanded into replacement arguments, which is useful when there are more than four arguments.

Attributes

See also
Source
Logging.scala
def info(template: String, arg1: Any, arg2: Any): Unit

Message template with 2 replacement arguments.

Message template with 2 replacement arguments.

Attributes

See also
Source
Logging.scala
def info(template: String, arg1: Any, arg2: Any, arg3: Any): Unit

Message template with 3 replacement arguments.

Message template with 3 replacement arguments.

Attributes

See also
Source
Logging.scala
def info(template: String, arg1: Any, arg2: Any, arg3: Any, arg4: Any): Unit

Message template with 4 replacement arguments.

Message template with 4 replacement arguments.

Attributes

See also
Source
Logging.scala
final def isEnabled(level: LogLevel): Boolean

Attributes

Returns

true if the specified log level is enabled

Source
Logging.scala
def log(level: LogLevel, message: String): Unit

Log message at the specified log level.

Log message at the specified log level.

Attributes

Source
Logging.scala
def log(level: LogLevel, template: String, arg1: Any): Unit

Message template with 1 replacement argument.

Message template with 1 replacement argument.

If arg1 is an Array it will be expanded into replacement arguments, which is useful when there are more than four arguments.

Attributes

Source
Logging.scala
def log(level: LogLevel, template: String, arg1: Any, arg2: Any): Unit

Message template with 2 replacement arguments.

Message template with 2 replacement arguments.

Attributes

Source
Logging.scala
def log(level: LogLevel, template: String, arg1: Any, arg2: Any, arg3: Any): Unit

Message template with 3 replacement arguments.

Message template with 3 replacement arguments.

Attributes

Source
Logging.scala
def log(level: LogLevel, template: String, arg1: Any, arg2: Any, arg3: Any, arg4: Any): Unit

Message template with 4 replacement arguments.

Message template with 4 replacement arguments.

Attributes

Source
Logging.scala
def mdc: MDC

Attributes

Source
Logging.scala
final def notifyLog(level: LogLevel, message: String): Unit

Attributes

Source
Logging.scala
protected def notifyWarning(cause: Throwable, message: String): Unit

Attributes

Source
Logging.scala
def warning(cause: Throwable, message: String): Unit

Log message at warning level, including the exception that indicated the warning.

Log message at warning level, including the exception that indicated the warning.

Attributes

See also
Source
Logging.scala
def warning(cause: Throwable, template: String, arg1: Any): Unit

Message template with 1 replacement argument.

Message template with 1 replacement argument.

If arg1 is an Array it will be expanded into replacement arguments, which is useful when there are more than four arguments.

Attributes

See also
Source
Logging.scala
def warning(cause: Throwable, template: String, arg1: Any, arg2: Any): Unit

Message template with 2 replacement arguments.

Message template with 2 replacement arguments.

Attributes

See also
Source
Logging.scala
def warning(cause: Throwable, template: String, arg1: Any, arg2: Any, arg3: Any): Unit

Message template with 3 replacement arguments.

Message template with 3 replacement arguments.

Attributes

See also
Source
Logging.scala
def warning(cause: Throwable, template: String, arg1: Any, arg2: Any, arg3: Any, arg4: Any): Unit

Message template with 4 replacement arguments.

Message template with 4 replacement arguments.

Attributes

See also
Source
Logging.scala
def warning(message: String): Unit

Log message at warning level.

Log message at warning level.

Attributes

See also
Source
Logging.scala
def warning(template: String, arg1: Any): Unit

Message template with 1 replacement argument.

Message template with 1 replacement argument.

If arg1 is an Array it will be expanded into replacement arguments, which is useful when there are more than four arguments.

Attributes

See also
Source
Logging.scala
def warning(template: String, arg1: Any, arg2: Any): Unit

Message template with 2 replacement arguments.

Message template with 2 replacement arguments.

Attributes

See also
Source
Logging.scala
def warning(template: String, arg1: Any, arg2: Any, arg3: Any): Unit

Message template with 3 replacement arguments.

Message template with 3 replacement arguments.

Attributes

See also
Source
Logging.scala
def warning(template: String, arg1: Any, arg2: Any, arg3: Any, arg4: Any): Unit

Message template with 4 replacement arguments.

Message template with 4 replacement arguments.

Attributes

See also
Source
Logging.scala