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".
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".
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".
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 an Array
it will be expanded into replacement arguments, which is useful when
there are more than four arguments.
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".
Message template with 4 replacement arguments.
Message template with 4 replacement arguments. For more parameters see the single replacement version of this method.
Message template with 3 replacement arguments.
Message template with 3 replacement arguments.
Message template with 2 replacement arguments.
Message template with 2 replacement arguments.
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.
Log message at debug level.
Log message at debug level.
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".
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".
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".
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 an Array
it will be expanded into replacement arguments, which is useful when
there are more than four arguments.
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".
Message template with 4 replacement arguments.
Message template with 4 replacement arguments. For more parameters see the single replacement version of this method.
Message template with 3 replacement arguments.
Message template with 3 replacement arguments.
Message template with 2 replacement arguments.
Message template with 2 replacement arguments.
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.
Log message at error level, including the exception that caused the error.
Log message at error level, including the exception that caused the error.
Message template with 4 replacement arguments.
Message template with 4 replacement arguments. For more parameters see the single replacement version of this method.
Message template with 3 replacement arguments.
Message template with 3 replacement arguments.
Message template with 2 replacement arguments.
Message template with 2 replacement arguments.
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.
Log message at error level, including the exception that caused the error.
Log message at error level, including the exception that caused the error.
Message template with 4 replacement arguments.
Message template with 4 replacement arguments. For more parameters see the single replacement version of this method.
Message template with 3 replacement arguments.
Message template with 3 replacement arguments.
Message template with 2 replacement arguments.
Message template with 2 replacement arguments.
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.
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.
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".
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".
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".
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 an Array
it will be expanded into replacement arguments, which is useful when
there are more than four arguments.
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".
Message template with 4 replacement arguments.
Message template with 4 replacement arguments. For more parameters see the single replacement version of this method.
Message template with 3 replacement arguments.
Message template with 3 replacement arguments.
Message template with 2 replacement arguments.
Message template with 2 replacement arguments.
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.
Log message at info level.
Log message at info level.
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.
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.
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.
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.
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".
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".
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".
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 an Array
it will be expanded into replacement arguments, which is useful when
there are more than four arguments.
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".
Message template with 4 replacement arguments.
Message template with 4 replacement arguments. For more parameters see the single replacement version of this method.
Message template with 3 replacement arguments.
Message template with 3 replacement arguments.
Message template with 2 replacement arguments.
Message template with 2 replacement arguments.
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.
Log message at the specified level.
Log message at the specified level.
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".
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".
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".
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 an Array
it will be expanded into replacement arguments, which is useful when
there are more than four arguments.
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".
Message template with 4 replacement arguments.
Message template with 4 replacement arguments. For more parameters see the single replacement version of this method.
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".
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".
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 an Array
it will be expanded into replacement arguments, which is useful when
there are more than four arguments.
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".
Message template with 4 replacement arguments.
Message template with 4 replacement arguments. For more parameters see the single replacement version of this method.
Message template with 3 replacement arguments.
Message template with 3 replacement arguments.
Message template with 2 replacement arguments.
Message template with 2 replacement arguments.
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.
Log message at warning level.
Message template with 4 replacement arguments.
Message template with 4 replacement arguments. For more parameters see the single replacement version of this method.
Message template with 3 replacement arguments.
Message template with 3 replacement arguments.
Message template with 2 replacement arguments.
Message template with 2 replacement arguments.
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.
Log message at warning level.
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
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
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.
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