implicit final class LoggerOps extends AnyVal

Extension methods to org.slf4j.Logger that are useful because the Scala compiler can't select the right overloaded methods for some cases when using 2 template arguments and varargs (>= 3 arguments) with primitive types.

Enable these extension methods with:

import akka.actor.typed.scaladsl.LoggerOps

or

import akka.actor.typed.scaladsl._
Source
package.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LoggerOps
  2. AnyVal
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new LoggerOps(log: Logger)

    log

    the underlying org.slf4j.Logger

Value Members

  1. def debug(marker: Marker, format: String, arguments: Any*): Unit

    Log marker data and message at the DEBUG level according to the specified format and arguments.

    Log marker data and message at the DEBUG level according to the specified format and arguments.

    This form avoids superfluous string concatenation when the logger is disabled for the DEBUG level. However, this variant incurs the hidden (and relatively small) cost of creating an Array[Object] before invoking the method, even if this logger is disabled for DEBUG. The debug variants taking one and debug2 taking two arguments exist solely in order to avoid this hidden cost.

    format

    the format string

    arguments

    a list of 3 or more arguments

  2. def debug(format: String, arguments: Any*): Unit

    Log a message at the DEBUG level according to the specified format and arguments.

    Log a message at the DEBUG level according to the specified format and arguments.

    This form avoids superfluous string concatenation when the logger is disabled for the DEBUG level. However, this variant incurs the hidden (and relatively small) cost of creating an Array[Object] before invoking the method, even if this logger is disabled for DEBUG. The debug variants taking one and debug2 taking two arguments exist solely in order to avoid this hidden cost.

    format

    the format string

    arguments

    a list of 3 or more arguments

  3. def debug(marker: Marker, format: String, arg1: Any, arg2: Any): Unit

    Log marker data and message at the DEBUG level according to the specified format and 2 arguments.

    Log marker data and message at the DEBUG level according to the specified format and 2 arguments.

    This form avoids superfluous object creation when the logger is disabled for the DEBUG level.

    marker

    the marker data specific to this log statement

    format

    the format string

    arg1

    the first argument

    arg2

    the second argument

  4. def debug(format: String, arg1: Any, arg2: Any): Unit

    Log a message at the DEBUG level according to the specified format and 2 arguments.

    Log a message at the DEBUG level according to the specified format and 2 arguments.

    This form avoids superfluous object creation when the logger is disabled for the DEBUG level.

    format

    the format string

    arg1

    the first argument

    arg2

    the second argument

  5. def error2(marker: Marker, format: String, arg1: Any, arg2: Any): Unit

    Log marker data and message at the ERROR level according to the specified format and 2 arguments.

    Log marker data and message at the ERROR level according to the specified format and 2 arguments.

    This form avoids superfluous object creation when the logger is disabled for the ERROR level.

    marker

    the marker data specific to this log statement

    format

    the format string

    arg1

    the first argument

    arg2

    the second argument

  6. def error2(format: String, arg1: Any, arg2: Any): Unit

    Log a message at the ERROR level according to the specified format and 2 arguments.

    Log a message at the ERROR level according to the specified format and 2 arguments.

    This form avoids superfluous object creation when the logger is disabled for the ERROR level.

    format

    the format string

    arg1

    the first argument

    arg2

    the second argument

  7. def errorN(marker: Marker, format: String, arguments: Any*): Unit

    Log marker data and message at the ERROR level according to the specified format and arguments.

    Log marker data and message at the ERROR level according to the specified format and arguments.

    This form avoids superfluous string concatenation when the logger is disabled for the ERROR level. However, this variant incurs the hidden (and relatively small) cost of creating an Array[Object] before invoking the method, even if this logger is disabled for ERROR. The error variants taking one and error2 taking two arguments exist solely in order to avoid this hidden cost.

    format

    the format string

    arguments

    a list of 3 or more arguments

  8. def errorN(format: String, arguments: Any*): Unit

    Log a message at the ERROR level according to the specified format and arguments.

    Log a message at the ERROR level according to the specified format and arguments.

    This form avoids superfluous string concatenation when the logger is disabled for the ERROR level. However, this variant incurs the hidden (and relatively small) cost of creating an Array[Object] before invoking the method, even if this logger is disabled for ERROR. The error variants taking one and error2 taking two arguments exist solely in order to avoid this hidden cost.

    format

    the format string

    arguments

    a list of 3 or more arguments

  9. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  10. def info(marker: Marker, format: String, arguments: Any*): Unit

    Log marker data and message at the INFO level according to the specified format and arguments.

    Log marker data and message at the INFO level according to the specified format and arguments.

    This form avoids superfluous string concatenation when the logger is disabled for the INFO level. However, this variant incurs the hidden (and relatively small) cost of creating an Array[Object] before invoking the method, even if this logger is disabled for INFO. The info variants taking one and info2 taking two arguments exist solely in order to avoid this hidden cost.

    format

    the format string

    arguments

    a list of 3 or more arguments

  11. def info(format: String, arguments: Any*): Unit

    Log a message at the INFO level according to the specified format and arguments.

    Log a message at the INFO level according to the specified format and arguments.

    This form avoids superfluous string concatenation when the logger is disabled for the INFO level. However, this variant incurs the hidden (and relatively small) cost of creating an Array[Object] before invoking the method, even if this logger is disabled for INFO. The info variants taking one and info2 taking two arguments exist solely in order to avoid this hidden cost.

    format

    the format string

    arguments

    a list of 3 or more arguments

  12. def info(marker: Marker, format: String, arg1: Any, arg2: Any): Unit

    Log marker data and message at the INFO level according to the specified format and 2 arguments.

    Log marker data and message at the INFO level according to the specified format and 2 arguments.

    This form avoids superfluous object creation when the logger is disabled for the INFO level.

    marker

    the marker data specific to this log statement

    format

    the format string

    arg1

    the first argument

    arg2

    the second argument

  13. def info(format: String, arg1: Any, arg2: Any): Unit

    Log a message at the INFO level according to the specified format and 2 arguments.

    Log a message at the INFO level according to the specified format and 2 arguments.

    This form avoids superfluous object creation when the logger is disabled for the INFO level.

    format

    the format string

    arg1

    the first argument

    arg2

    the second argument

  14. val log: Logger
  15. def trace2(marker: Marker, format: String, arg1: Any, arg2: Any): Unit

    Log marker data and message at the TRACE level according to the specified format and 2 arguments.

    Log marker data and message at the TRACE level according to the specified format and 2 arguments.

    This form avoids superfluous object creation when the logger is disabled for the TRACE level.

    marker

    the marker data specific to this log statement

    format

    the format string

    arg1

    the first argument

    arg2

    the second argument

  16. def trace2(format: String, arg1: Any, arg2: Any): Unit

    Log a message at the TRACE level according to the specified format and 2 arguments.

    Log a message at the TRACE level according to the specified format and 2 arguments.

    This form avoids superfluous object creation when the logger is disabled for the TRACE level.

    format

    the format string

    arg1

    the first argument

    arg2

    the second argument

  17. def traceN(marker: Marker, format: String, arguments: Any*): Unit

    Log marker data and message at the TRACE level according to the specified format and arguments.

    Log marker data and message at the TRACE level according to the specified format and arguments.

    This form avoids superfluous string concatenation when the logger is disabled for the TRACE level. However, this variant incurs the hidden (and relatively small) cost of creating an Array[Object] before invoking the method, even if this logger is disabled for TRACE. The trace variants taking one and trace2 taking two arguments exist solely in order to avoid this hidden cost.

    format

    the format string

    arguments

    a list of 3 or more arguments

  18. def traceN(format: String, arguments: Any*): Unit

    Log a message at the TRACE level according to the specified format and arguments.

    Log a message at the TRACE level according to the specified format and arguments.

    This form avoids superfluous string concatenation when the logger is disabled for the TRACE level. However, this variant incurs the hidden (and relatively small) cost of creating an Array[Object] before invoking the method, even if this logger is disabled for TRACE. The trace variants taking one and trace2 taking two arguments exist solely in order to avoid this hidden cost.

    format

    the format string

    arguments

    a list of 3 or more arguments

  19. def warn(marker: Marker, format: String, arg1: Any, arg2: Any): Unit

    Log marker data and message at the WARN level according to the specified format and 2 arguments.

    Log marker data and message at the WARN level according to the specified format and 2 arguments.

    This form avoids superfluous object creation when the logger is disabled for the WARN level.

    marker

    the marker data specific to this log statement

    format

    the format string

    arg1

    the first argument

    arg2

    the second argument

  20. def warn(format: String, arg1: Any, arg2: Any): Unit

    Log a message at the WARN level according to the specified format and 2 arguments.

    Log a message at the WARN level according to the specified format and 2 arguments.

    This form avoids superfluous object creation when the logger is disabled for the WARN level.

    format

    the format string

    arg1

    the first argument

    arg2

    the second argument

  21. def warnN(marker: Marker, format: String, arguments: Any*): Unit

    Log marker data and message at the WARN level according to the specified format and arguments.

    Log marker data and message at the WARN level according to the specified format and arguments.

    This form avoids superfluous string concatenation when the logger is disabled for the WARN level. However, this variant incurs the hidden (and relatively small) cost of creating an Array[Object] before invoking the method, even if this logger is disabled for WARN. The warn variants taking one and warn2 taking two arguments exist solely in order to avoid this hidden cost.

    format

    the format string

    arguments

    a list of 3 or more arguments

  22. def warnN(format: String, arguments: Any*): Unit

    Log a message at the WARN level according to the specified format and arguments.

    Log a message at the WARN level according to the specified format and arguments.

    This form avoids superfluous string concatenation when the logger is disabled for the WARN level. However, this variant incurs the hidden (and relatively small) cost of creating an Array[Object] before invoking the method, even if this logger is disabled for WARN. The warn variants taking one and warn2 taking two arguments exist solely in order to avoid this hidden cost.

    format

    the format string

    arguments

    a list of 3 or more arguments