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

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 to any2stringadd[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 to ArrowAssoc[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 to Ensuring[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 to Ensuring[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 to Ensuring[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 to Ensuring[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 formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from LoggerOps to StringFormat[LoggerOps] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  20. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  21. 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

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

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

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

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

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

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

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

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

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

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

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

  36. def [B](y: B): (LoggerOps, B)
    Implicit
    This member is added by an implicit conversion from LoggerOps to ArrowAssoc[LoggerOps] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from AnyVal

Inherited from Any

Inherited by implicit conversion any2stringadd from LoggerOps to any2stringadd[LoggerOps]

Inherited by implicit conversion StringFormat from LoggerOps to StringFormat[LoggerOps]

Inherited by implicit conversion Ensuring from LoggerOps to Ensuring[LoggerOps]

Inherited by implicit conversion ArrowAssoc from LoggerOps to ArrowAssoc[LoggerOps]

Ungrouped