abstract class Logger extends AnyRef
Logging API provided inside of actors through the actor context.
All log-level methods support simple interpolation templates with up to four
arguments placed by using {}
within the template (first string
argument):
ctx.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.
*Rationale for an Akka-specific logging API:* Provided rather than a specific logging library logging API to not enforce a specific logging library on users but still providing a convenient, performant, asynchronous and testable logging solution. Additionally it allows unified logging for both user implemented actors and built in Akka actors where the actual logging backend can be selected by the user. This logging facade is also used by Akka internally, without having to depend on specific logging frameworks.
The Logger of an actor is tied to the actor path and should not be shared with other threads outside of the actor.
Not for user extension
- Annotations
- @DoNotInherit()
- Source
- Logger.scala
- Alphabetic
- By Inheritance
- Logger
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
debug(marker: LogMarker, template: String, arg1: Any, arg2: Any, arg3: Any, arg4: Any): Unit
Message template with 4 replacement arguments.
Message template with 4 replacement arguments. For more parameters see the single replacement version of this method.
The marker argument can be picked up by various logging frameworks such as slf4j to mark this log statement as "special".
- See also
-
abstract
def
debug(marker: LogMarker, template: String, arg1: Any, arg2: Any, arg3: Any): Unit
Message template with 3 replacement arguments.
Message template with 3 replacement arguments.
The marker argument can be picked up by various logging frameworks such as slf4j to mark this log statement as "special".
- See also
-
abstract
def
debug(marker: LogMarker, template: String, arg1: Any, arg2: Any): Unit
Message template with 2 replacement arguments.
Message template with 2 replacement arguments.
The marker argument can be picked up by various logging frameworks such as slf4j to mark this log statement as "special".
- See also
-
abstract
def
debug(marker: LogMarker, template: String, arg1: Any): Unit
Message template with 1 replacement argument.
Message template with 1 replacement argument.
The marker argument can be picked up by various logging frameworks such as slf4j to mark this log statement as "special".
If
arg1
is anArray
it will be expanded into replacement arguments, which is useful when there are more than four arguments.- See also
-
abstract
def
debug(marker: LogMarker, message: String): Unit
Log message at debug level.
Log message at debug level.
The marker argument can be picked up by various logging frameworks such as slf4j to mark this log statement as "special".
- See also
-
abstract
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. For more parameters see the single replacement version of this method.
- See also
-
abstract
def
debug(template: String, arg1: Any, arg2: Any, arg3: Any): Unit
Message template with 3 replacement arguments.
Message template with 3 replacement arguments.
- See also
-
abstract
def
debug(template: String, arg1: Any, arg2: Any): Unit
Message template with 2 replacement arguments.
Message template with 2 replacement arguments.
- See also
-
abstract
def
debug(template: String, arg1: Any): Unit
Message template with 1 replacement argument.
Message template with 1 replacement argument.
If
arg1
is anArray
it will be expanded into replacement arguments, which is useful when there are more than four arguments.- See also
-
abstract
def
debug(message: String): Unit
Log message at debug level.
Log message at debug level.
- See also
-
abstract
def
error(marker: LogMarker, template: String, arg1: Any, arg2: Any, arg3: Any, arg4: Any): Unit
Message template with 4 replacement arguments.
Message template with 4 replacement arguments. For more parameters see the single replacement version of this method.
The marker argument can be picked up by various logging frameworks such as slf4j to mark this log statement as "special".
- See also
-
abstract
def
error(marker: LogMarker, template: String, arg1: Any, arg2: Any, arg3: Any): Unit
Message template with 3 replacement arguments.
Message template with 3 replacement arguments.
The marker argument can be picked up by various logging frameworks such as slf4j to mark this log statement as "special".
- See also
-
abstract
def
error(marker: LogMarker, template: String, arg1: Any, arg2: Any): Unit
Message template with 2 replacement arguments.
Message template with 2 replacement arguments.
The marker argument can be picked up by various logging frameworks such as slf4j to mark this log statement as "special".
- See also
-
abstract
def
error(marker: LogMarker, template: String, arg1: Any): Unit
Message template with 1 replacement argument.
Message template with 1 replacement argument.
The marker argument can be picked up by various logging frameworks such as slf4j to mark this log statement as "special".
If
arg1
is anArray
it will be expanded into replacement arguments, which is useful when there are more than four arguments.- See also
-
abstract
def
error(marker: LogMarker, 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.
The marker argument can be picked up by various logging frameworks such as slf4j to mark this log statement as "special".
- See also
-
abstract
def
error(marker: LogMarker, 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. For more parameters see the single replacement version of this method.
- See also
-
abstract
def
error(marker: LogMarker, cause: Throwable, template: String, arg1: Any, arg2: Any, arg3: Any): Unit
Message template with 3 replacement arguments.
Message template with 3 replacement arguments.
- See also
-
abstract
def
error(marker: LogMarker, cause: Throwable, template: String, arg1: Any, arg2: Any): Unit
Message template with 2 replacement arguments.
Message template with 2 replacement arguments.
- See also
-
abstract
def
error(marker: LogMarker, cause: Throwable, template: String, arg1: Any): Unit
Message template with 1 replacement argument.
Message template with 1 replacement argument.
If
arg1
is anArray
it will be expanded into replacement arguments, which is useful when there are more than four arguments.- See also
-
abstract
def
error(marker: LogMarker, 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.
- See also
-
abstract
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. For more parameters see the single replacement version of this method.
- See also
-
abstract
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.
- See also
-
abstract
def
error(cause: Throwable, template: String, arg1: Any, arg2: Any): Unit
Message template with 2 replacement arguments.
Message template with 2 replacement arguments.
- See also
-
abstract
def
error(cause: Throwable, template: String, arg1: Any): Unit
Message template with 1 replacement argument.
Message template with 1 replacement argument.
If
arg1
is anArray
it will be expanded into replacement arguments, which is useful when there are more than four arguments.- See also
-
abstract
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.
- See also
-
abstract
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. For more parameters see the single replacement version of this method.
- See also
-
abstract
def
error(template: String, arg1: Any, arg2: Any, arg3: Any): Unit
Message template with 3 replacement arguments.
Message template with 3 replacement arguments.
- See also
-
abstract
def
error(template: String, arg1: Any, arg2: Any): Unit
Message template with 2 replacement arguments.
Message template with 2 replacement arguments.
- See also
-
abstract
def
error(template: String, arg1: Any): Unit
Message template with 1 replacement argument.
Message template with 1 replacement argument.
If
arg1
is anArray
it will be expanded into replacement arguments, which is useful when there are more than four arguments.- See also
-
abstract
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.
- See also
-
abstract
def
info(marker: LogMarker, template: String, arg1: Any, arg2: Any, arg3: Any, arg4: Any): Unit
Message template with 4 replacement arguments.
Message template with 4 replacement arguments. For more parameters see the single replacement version of this method.
The marker argument can be picked up by various logging frameworks such as slf4j to mark this log statement as "special".
- See also
-
abstract
def
info(marker: LogMarker, template: String, arg1: Any, arg2: Any, arg3: Any): Unit
Message template with 3 replacement arguments.
Message template with 3 replacement arguments.
The marker argument can be picked up by various logging frameworks such as slf4j to mark this log statement as "special".
- See also
-
abstract
def
info(marker: LogMarker, template: String, arg1: Any, arg2: Any): Unit
Message template with 2 replacement arguments.
Message template with 2 replacement arguments.
The marker argument can be picked up by various logging frameworks such as slf4j to mark this log statement as "special".
- See also
-
abstract
def
info(marker: LogMarker, template: String, arg1: Any): Unit
Message template with 1 replacement argument.
Message template with 1 replacement argument.
The marker argument can be picked up by various logging frameworks such as slf4j to mark this log statement as "special".
If
arg1
is anArray
it will be expanded into replacement arguments, which is useful when there are more than four arguments.- See also
-
abstract
def
info(marker: LogMarker, message: String): Unit
Log message at info level.
Log message at info level.
The marker argument can be picked up by various logging frameworks such as slf4j to mark this log statement as "special".
- See also
-
abstract
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. For more parameters see the single replacement version of this method.
- See also
-
abstract
def
info(template: String, arg1: Any, arg2: Any, arg3: Any): Unit
Message template with 3 replacement arguments.
Message template with 3 replacement arguments.
- See also
-
abstract
def
info(template: String, arg1: Any, arg2: Any): Unit
Message template with 2 replacement arguments.
Message template with 2 replacement arguments.
- See also
-
abstract
def
info(template: String, arg1: Any): Unit
Message template with 1 replacement argument.
Message template with 1 replacement argument.
If
arg1
is anArray
it will be expanded into replacement arguments, which is useful when there are more than four arguments.- See also
-
abstract
def
info(message: String): Unit
Log message at info level.
Log message at info level.
- See also
-
abstract
def
isDebugEnabled(marker: LogMarker): Boolean
Whether debug logging with this marker is enabled on the actor system level, may not represent the setting all the way to the logger implementation, but when it does it allows avoiding unnecessary resource usage for log entries that will not actually end up in any logger output.
-
abstract
def
isDebugEnabled: Boolean
Whether debug logging is enabled on the actor system level, may not represent the setting all the way to the logger implementation, but when it does it allows avoiding unnecessary resource usage for log entries that will not actually end up in any logger output.
-
abstract
def
isErrorEnabled(marker: LogMarker): Boolean
Whether error logging with this marker is enabled on the actor system level, may not represent the setting all the way to the logger implementation, but when it does it allows avoiding unnecessary resource usage for log entries that will not actually end up in any logger output.
-
abstract
def
isErrorEnabled: Boolean
Whether error logging is enabled on the actor system level, may not represent the setting all the way to the logger implementation, but when it does it allows avoiding unnecessary resource usage for log entries that will not actually end up in any logger output.
-
abstract
def
isInfoEnabled(marker: LogMarker): Boolean
Whether info logging with this marker is enabled on the actor system level, may not represent the setting all the way to the logger implementation, but when it does it allows avoiding unnecessary resource usage for log entries that will not actually end up in any logger output.
-
abstract
def
isInfoEnabled: Boolean
Whether info logging is enabled on the actor system level, may not represent the setting all the way to the logger implementation, but when it does it allows avoiding unnecessary resource usage for log entries that will not actually end up in any logger output.
-
abstract
def
isWarningEnabled(marker: LogMarker): Boolean
Whether warning logging with this marker is enabled on the actor system level, may not represent the setting all the way to the logger implementation, but when it does it allows avoiding unnecessary resource usage for log entries that will not actually end up in any logger output.
-
abstract
def
isWarningEnabled: Boolean
Whether warning logging is enabled on the actor system level, may not represent the setting all the way to the logger implementation, but when it does it allows avoiding unnecessary resource usage for log entries that will not actually end up in any logger output.
-
abstract
def
log(level: LogLevel, marker: LogMarker, template: String, arg1: Any, arg2: Any, arg3: Any, arg4: Any): Unit
Message template with 4 replacement arguments.
Message template with 4 replacement arguments. For more parameters see the single replacement version of this method.
The marker argument can be picked up by various logging frameworks such as slf4j to mark this log statement as "special".
- See also
-
abstract
def
log(level: LogLevel, marker: LogMarker, template: String, arg1: Any, arg2: Any, arg3: Any): Unit
Message template with 3 replacement arguments.
Message template with 3 replacement arguments.
The marker argument can be picked up by various logging frameworks such as slf4j to mark this log statement as "special".
- See also
-
abstract
def
log(level: LogLevel, marker: LogMarker, template: String, arg1: Any, arg2: Any): Unit
Message template with 2 replacement arguments.
Message template with 2 replacement arguments.
The marker argument can be picked up by various logging frameworks such as slf4j to mark this log statement as "special".
- See also
-
abstract
def
log(level: LogLevel, marker: LogMarker, template: String, arg1: Any): Unit
Message template with 1 replacement argument.
Message template with 1 replacement argument.
The marker argument can be picked up by various logging frameworks such as slf4j to mark this log statement as "special".
If
arg1
is anArray
it will be expanded into replacement arguments, which is useful when there are more than four arguments.- See also
-
abstract
def
log(level: LogLevel, marker: LogMarker, message: String): Unit
Log message at the specified level.
Log message at the specified level.
The marker argument can be picked up by various logging frameworks such as slf4j to mark this log statement as "special".
- See also
-
abstract
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. For more parameters see the single replacement version of this method.
- See also
-
abstract
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.
- See also
-
abstract
def
log(level: LogLevel, template: String, arg1: Any, arg2: Any): Unit
Message template with 2 replacement arguments.
Message template with 2 replacement arguments.
- See also
-
abstract
def
log(level: LogLevel, template: String, arg1: Any): Unit
Message template with 1 replacement argument.
Message template with 1 replacement argument.
If
arg1
is anArray
it will be expanded into replacement arguments, which is useful when there are more than four arguments.- See also
-
abstract
def
log(level: LogLevel, message: String): Unit
Log message at the specified level.
Log message at the specified level.
- See also
-
abstract
def
warning(marker: LogMarker, 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. For more parameters see the single replacement version of this method.
The marker argument can be picked up by various logging frameworks such as slf4j to mark this log statement as "special".
- See also
-
abstract
def
warning(marker: LogMarker, cause: Throwable, template: String, arg1: Any, arg2: Any, arg3: Any): Unit
Message template with 3 replacement arguments.
Message template with 3 replacement arguments.
The marker argument can be picked up by various logging frameworks such as slf4j to mark this log statement as "special".
- See also
-
abstract
def
warning(marker: LogMarker, cause: Throwable, template: String, arg1: Any, arg2: Any): Unit
Message template with 2 replacement arguments.
Message template with 2 replacement arguments.
The marker argument can be picked up by various logging frameworks such as slf4j to mark this log statement as "special".
- See also
-
abstract
def
warning(marker: LogMarker, cause: Throwable, template: String, arg1: Any): Unit
Message template with 1 replacement argument.
Message template with 1 replacement argument.
The marker argument can be picked up by various logging frameworks such as slf4j to mark this log statement as "special".
If
arg1
is anArray
it will be expanded into replacement arguments, which is useful when there are more than four arguments.- See also
-
abstract
def
warning(marker: LogMarker, cause: Throwable, message: String): Unit
Log message at warning level.
Log message at warning level.
The marker argument can be picked up by various logging frameworks such as slf4j to mark this log statement as "special".
- See also
-
abstract
def
warning(marker: LogMarker, template: String, arg1: Any, arg2: Any, arg3: Any, arg4: Any): Unit
Message template with 4 replacement arguments.
Message template with 4 replacement arguments. For more parameters see the single replacement version of this method.
- See also
-
abstract
def
warning(marker: LogMarker, template: String, arg1: Any, arg2: Any, arg3: Any): Unit
Message template with 3 replacement arguments.
Message template with 3 replacement arguments.
The marker argument can be picked up by various logging frameworks such as slf4j to mark this log statement as "special".
- See also
-
abstract
def
warning(marker: LogMarker, template: String, arg1: Any, arg2: Any): Unit
Message template with 2 replacement arguments.
Message template with 2 replacement arguments.
The marker argument can be picked up by various logging frameworks such as slf4j to mark this log statement as "special".
- See also
-
abstract
def
warning(marker: LogMarker, template: String, arg1: Any): Unit
Message template with 1 replacement argument.
Message template with 1 replacement argument.
The marker argument can be picked up by various logging frameworks such as slf4j to mark this log statement as "special".
If
arg1
is anArray
it will be expanded into replacement arguments, which is useful when there are more than four arguments.- See also
-
abstract
def
warning(marker: LogMarker, message: String): Unit
Log message at warning level.
Log message at warning level.
The marker argument can be picked up by various logging frameworks such as slf4j to mark this log statement as "special".
-
abstract
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. For more parameters see the single replacement version of this method.
- See also
-
abstract
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.
- See also
-
abstract
def
warning(cause: Throwable, template: String, arg1: Any, arg2: Any): Unit
Message template with 2 replacement arguments.
Message template with 2 replacement arguments.
- See also
-
abstract
def
warning(cause: Throwable, template: String, arg1: Any): Unit
Message template with 1 replacement argument.
Message template with 1 replacement argument.
If
arg1
is anArray
it will be expanded into replacement arguments, which is useful when there are more than four arguments.- See also
-
abstract
def
warning(cause: Throwable, message: String): Unit
Log message at warning level.
-
abstract
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. For more parameters see the single replacement version of this method.
- See also
-
abstract
def
warning(template: String, arg1: Any, arg2: Any, arg3: Any): Unit
Message template with 3 replacement arguments.
Message template with 3 replacement arguments.
- See also
-
abstract
def
warning(template: String, arg1: Any, arg2: Any): Unit
Message template with 2 replacement arguments.
Message template with 2 replacement arguments.
- See also
-
abstract
def
warning(template: String, arg1: Any): Unit
Message template with 1 replacement argument.
Message template with 1 replacement argument.
If
arg1
is anArray
it will be expanded into replacement arguments, which is useful when there are more than four arguments.- See also
-
abstract
def
warning(message: String): Unit
Log message at warning level.
-
abstract
def
withLogSource(logSource: String): Logger
Return a new logger sharing properties of this logger except the log source
-
abstract
def
withLoggerClass(clazz: Class[_]): Logger
Return a new logger sharing properties of this logger except the logger class
-
abstract
def
withMdc(mdc: Map[String, Any]): Logger
Java API: the returned logger will add the given MDC (Mapped Diagnostic Context) to any log entry logged
Java API: the returned logger will add the given MDC (Mapped Diagnostic Context) to any log entry logged
-
abstract
def
withMdc(mdc: Map[String, Any]): Logger
Scala API: the returned logger will add the given MDC (Mapped Diagnostic Context) to any log entry logged
Scala API: the returned logger will add the given MDC (Mapped Diagnostic Context) to any log entry logged
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- def ->[B](y: B): (Logger, B)
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate() @throws( ... )
- def ensuring(cond: (Logger) ⇒ Boolean, msg: ⇒ Any): Logger
- def ensuring(cond: (Logger) ⇒ Boolean): Logger
- def ensuring(cond: Boolean, msg: ⇒ Any): Logger
- def ensuring(cond: Boolean): Logger
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def formatted(fmtstr: String): String
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isLevelEnabled(logLevel: LogLevel, marker: LogMarker): Boolean
Whether a log level with this marker is enabled on the actor system level, may not represent the setting all the way to the logger implementation, but when it does it allows avoiding unnecessary resource usage for log entries that will not actually end up in any logger output.
-
def
isLevelEnabled(logLevel: LogLevel): Boolean
Whether a log level is enabled on the actor system level, may not represent the setting all the way to the logger implementation, but when it does it allows avoiding unnecessary resource usage for log entries that will not actually end up in any logger output.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- def →[B](y: B): (Logger, B)