Packages

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. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##: Int
    Definition Classes
    Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from LoggerOps toany2stringadd[LoggerOps] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (LoggerOps, B)
    Implicit
    This member is added by an implicit conversion from LoggerOps toArrowAssoc[LoggerOps] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def debug2(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

  8. def debug2(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

  9. def debugN(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

  10. def debugN(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

  11. def ensuring(cond: (LoggerOps) => Boolean, msg: => Any): LoggerOps
    Implicit
    This member is added by an implicit conversion from LoggerOps toEnsuring[LoggerOps] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: (LoggerOps) => Boolean): LoggerOps
    Implicit
    This member is added by an implicit conversion from LoggerOps toEnsuring[LoggerOps] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean, msg: => Any): LoggerOps
    Implicit
    This member is added by an implicit conversion from LoggerOps toEnsuring[LoggerOps] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: Boolean): LoggerOps
    Implicit
    This member is added by an implicit conversion from LoggerOps toEnsuring[LoggerOps] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. 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

  16. 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

  17. 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

  18. 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

  19. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  20. def info2(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

  21. def info2(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

  22. def infoN(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

  23. def infoN(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

  24. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  25. val log: Logger
  26. def toString(): String
    Definition Classes
    Any
  27. 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

  28. 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

  29. 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

  30. 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

  31. def warn2(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

  32. def warn2(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

  33. 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

  34. 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

Deprecated Value Members

  1. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from LoggerOps toStringFormat[LoggerOps] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.12.16) Use formatString.format(value) instead of value.formatted(formatString), or use the f"" string interpolator. In Java 15 and later, formatted resolves to the new method in String which has reversed parameters.

  2. def [B](y: B): (LoggerOps, B)
    Implicit
    This member is added by an implicit conversion from LoggerOps toArrowAssoc[LoggerOps] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use -> instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

Inherited from AnyVal

Inherited from Any

Inherited by implicit conversion any2stringadd fromLoggerOps to any2stringadd[LoggerOps]

Inherited by implicit conversion StringFormat fromLoggerOps to StringFormat[LoggerOps]

Inherited by implicit conversion Ensuring fromLoggerOps to Ensuring[LoggerOps]

Inherited by implicit conversion ArrowAssoc fromLoggerOps to ArrowAssoc[LoggerOps]

Ungrouped