akka.event

LoggingAdapter

trait LoggingAdapter extends AnyRef

Logging wrapper to make nicer and optimize: provide template versions which evaluate .toString only if the log level is actually enabled. Typically used by obtaining an implementation from the Logging object:

val log = Logging(<bus>, <source object>)
...
log.info("hello world!")

All log-level methods support simple interpolation templates with up to four arguments placed by using {} within the template (first string argument):

log.error(exception, "Exception while processing {} in state {}", msg, state)

Linear Supertypes
AnyRef, Any
Known Subclasses
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. LoggingAdapter
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by any2stringfmt
  3. by any2ArrowAssoc
  4. by any2Ensuring
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def isDebugEnabled: Boolean

  2. abstract def isErrorEnabled: Boolean

  3. abstract def isInfoEnabled: Boolean

  4. abstract def isWarningEnabled: Boolean

  5. abstract def notifyDebug(message: String): Unit

    Attributes
    protected
  6. abstract def notifyError(cause: Throwable, message: String): Unit

    Attributes
    protected
  7. abstract def notifyError(message: String): Unit

    Attributes
    protected
  8. abstract def notifyInfo(message: String): Unit

    Attributes
    protected
  9. abstract def notifyWarning(message: String): Unit

    Attributes
    protected

Concrete Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def +(other: String): String

    Implicit information
    This member is added by an implicit conversion from LoggingAdapter to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  5. def ->[B](y: B): (LoggingAdapter, B)

    Implicit information
    This member is added by an implicit conversion from LoggingAdapter to ArrowAssoc[LoggingAdapter] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  6. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  7. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  10. def debug(template: String, arg1: Any, arg2: Any, arg3: Any, arg4: Any): Unit

  11. def debug(template: String, arg1: Any, arg2: Any, arg3: Any): Unit

  12. def debug(template: String, arg1: Any, arg2: Any): Unit

  13. def debug(template: String, arg1: Any): Unit

  14. def debug(message: String): Unit

  15. def ensuring(cond: (LoggingAdapter) ⇒ Boolean, msg: ⇒ Any): LoggingAdapter

    Implicit information
    This member is added by an implicit conversion from LoggingAdapter to Ensuring[LoggingAdapter] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. def ensuring(cond: (LoggingAdapter) ⇒ Boolean): LoggingAdapter

    Implicit information
    This member is added by an implicit conversion from LoggingAdapter to Ensuring[LoggingAdapter] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. def ensuring(cond: Boolean, msg: ⇒ Any): LoggingAdapter

    Implicit information
    This member is added by an implicit conversion from LoggingAdapter to Ensuring[LoggingAdapter] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. def ensuring(cond: Boolean): LoggingAdapter

    Implicit information
    This member is added by an implicit conversion from LoggingAdapter to Ensuring[LoggingAdapter] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  19. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  20. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  21. def error(template: String, arg1: Any, arg2: Any, arg3: Any, arg4: Any): Unit

  22. def error(template: String, arg1: Any, arg2: Any, arg3: Any): Unit

  23. def error(template: String, arg1: Any, arg2: Any): Unit

  24. def error(template: String, arg1: Any): Unit

  25. def error(message: String): Unit

  26. def error(cause: Throwable, template: String, arg1: Any, arg2: Any, arg3: Any, arg4: Any): Unit

  27. def error(cause: Throwable, template: String, arg1: Any, arg2: Any, arg3: Any): Unit

  28. def error(cause: Throwable, template: String, arg1: Any, arg2: Any): Unit

  29. def error(cause: Throwable, template: String, arg1: Any): Unit

  30. def error(cause: Throwable, message: String): Unit

  31. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  32. def format(t: String, arg: Any*): String

  33. def formatted(fmtstr: String): String

    Implicit information
    This member is added by an implicit conversion from LoggingAdapter to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  34. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  35. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  36. def info(template: String, arg1: Any, arg2: Any, arg3: Any, arg4: Any): Unit

  37. def info(template: String, arg1: Any, arg2: Any, arg3: Any): Unit

  38. def info(template: String, arg1: Any, arg2: Any): Unit

  39. def info(template: String, arg1: Any): Unit

  40. def info(message: String): Unit

  41. final def isEnabled(level: LogLevel): Boolean

  42. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  43. def log(level: LogLevel, template: String, arg1: Any, arg2: Any, arg3: Any, arg4: Any): Unit

  44. def log(level: LogLevel, template: String, arg1: Any, arg2: Any, arg3: Any): Unit

  45. def log(level: LogLevel, template: String, arg1: Any, arg2: Any): Unit

  46. def log(level: LogLevel, template: String, arg1: Any): Unit

  47. def log(level: LogLevel, message: String): Unit

  48. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  49. final def notify(): Unit

    Definition Classes
    AnyRef
  50. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  51. final def notifyLog(level: LogLevel, message: String): Unit

  52. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  53. def toString(): String

    Definition Classes
    AnyRef → Any
  54. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  55. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  56. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  57. def warning(template: String, arg1: Any, arg2: Any, arg3: Any, arg4: Any): Unit

  58. def warning(template: String, arg1: Any, arg2: Any, arg3: Any): Unit

  59. def warning(template: String, arg1: Any, arg2: Any): Unit

  60. def warning(template: String, arg1: Any): Unit

  61. def warning(message: String): Unit

  62. def [B](y: B): (LoggingAdapter, B)

    Implicit information
    This member is added by an implicit conversion from LoggingAdapter to ArrowAssoc[LoggingAdapter] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Shadowed Implict Value Members

  1. val self: Any

    Implicit information
    This member is added by an implicit conversion from LoggingAdapter to StringAdd performed by method any2stringadd in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (loggingAdapter: StringAdd).self
    Definition Classes
    StringAdd
  2. val self: Any

    Implicit information
    This member is added by an implicit conversion from LoggingAdapter to StringFormat performed by method any2stringfmt in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (loggingAdapter: StringFormat).self
    Definition Classes
    StringFormat

Deprecated Value Members

  1. def x: LoggingAdapter

    Implicit information
    This member is added by an implicit conversion from LoggingAdapter to ArrowAssoc[LoggingAdapter] performed by method any2ArrowAssoc in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (loggingAdapter: ArrowAssoc[LoggingAdapter]).x
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  2. def x: LoggingAdapter

    Implicit information
    This member is added by an implicit conversion from LoggingAdapter to Ensuring[LoggingAdapter] performed by method any2Ensuring in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (loggingAdapter: Ensuring[LoggingAdapter]).x
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from LoggingAdapter to StringAdd

Inherited by implicit conversion any2stringfmt from LoggingAdapter to StringFormat

Inherited by implicit conversion any2ArrowAssoc from LoggingAdapter to ArrowAssoc[LoggingAdapter]

Inherited by implicit conversion any2Ensuring from LoggingAdapter to Ensuring[LoggingAdapter]

Ungrouped