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)- Source
- Logging.scala
- Alphabetic
- By Inheritance
- LoggingAdapter
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Abstract Value Members
-  abstract def isDebugEnabled: Boolean
-  abstract def isErrorEnabled: Boolean
-  abstract def isInfoEnabled: Boolean
-  abstract def isWarningEnabled: Boolean
- 
      
      
      
        
      
    
      
        abstract 
        def
      
      
        notifyDebug(message: String): Unit
      
      
      - Attributes
- protected
 
- 
      
      
      
        
      
    
      
        abstract 
        def
      
      
        notifyError(cause: Throwable, message: String): Unit
      
      
      - Attributes
- protected
 
- 
      
      
      
        
      
    
      
        abstract 
        def
      
      
        notifyError(message: String): Unit
      
      
      - Attributes
- protected
 
- 
      
      
      
        
      
    
      
        abstract 
        def
      
      
        notifyInfo(message: String): Unit
      
      
      - Attributes
- protected
 
- 
      
      
      
        
      
    
      
        abstract 
        def
      
      
        notifyWarning(message: String): Unit
      
      
      - Attributes
- protected
 
Concrete Value Members
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        !=(arg0: Any): Boolean
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        ##(): Int
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        +(other: String): String
      
      
      - Implicit
- This member is added by an implicit conversion from LoggingAdapter to any2stringadd[LoggingAdapter] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        ->[B](y: B): (LoggingAdapter, B)
      
      
      - Implicit
- This member is added by an implicit conversion from LoggingAdapter to ArrowAssoc[LoggingAdapter] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        ==(arg0: Any): Boolean
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        asInstanceOf[T0]: T0
      
      
      - Definition Classes
- Any
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        clone(): AnyRef
      
      
      - Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        debug(template: String, arg1: Any, arg2: Any, arg3: Any, arg4: Any): Unit
      
      
      Message template with 4 replacement arguments. Message template with 4 replacement arguments. - See also
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        debug(template: String, arg1: Any, arg2: Any, arg3: Any): Unit
      
      
      Message template with 3 replacement arguments. Message template with 3 replacement arguments. - See also
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        debug(template: String, arg1: Any, arg2: Any): Unit
      
      
      Message template with 2 replacement arguments. Message template with 2 replacement arguments. - See also
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        debug(template: String, arg1: Any): Unit
      
      
      Message template with 1 replacement argument. Message template with 1 replacement argument. - See also
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        debug(message: String): Unit
      
      
      Log message at debug level. Log message at debug level. - See also
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        ensuring(cond: (LoggingAdapter) ⇒ Boolean, msg: ⇒ Any): LoggingAdapter
      
      
      - Implicit
- This member is added by an implicit conversion from LoggingAdapter to Ensuring[LoggingAdapter] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        ensuring(cond: (LoggingAdapter) ⇒ Boolean): LoggingAdapter
      
      
      - Implicit
- This member is added by an implicit conversion from LoggingAdapter to Ensuring[LoggingAdapter] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        ensuring(cond: Boolean, msg: ⇒ Any): LoggingAdapter
      
      
      - Implicit
- This member is added by an implicit conversion from LoggingAdapter to Ensuring[LoggingAdapter] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        ensuring(cond: Boolean): LoggingAdapter
      
      
      - Implicit
- This member is added by an implicit conversion from LoggingAdapter to Ensuring[LoggingAdapter] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        eq(arg0: AnyRef): Boolean
      
      
      - Definition Classes
- AnyRef
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        equals(arg0: Any): Boolean
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        error(template: String, arg1: Any, arg2: Any, arg3: Any, arg4: Any): Unit
      
      
      Message template with 4 replacement arguments. Message template with 4 replacement arguments. - See also
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        error(template: String, arg1: Any, arg2: Any, arg3: Any): Unit
      
      
      Message template with 3 replacement arguments. Message template with 3 replacement arguments. - See also
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        error(template: String, arg1: Any, arg2: Any): Unit
      
      
      Message template with 2 replacement arguments. Message template with 2 replacement arguments. - See also
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        error(template: String, arg1: Any): Unit
      
      
      Message template with 1 replacement argument. Message template with 1 replacement argument. - See also
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        error(message: String): Unit
      
      
      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. - See also
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        error(cause: Throwable, template: String, arg1: Any, arg2: Any, arg3: Any, arg4: Any): Unit
      
      
      Message template with 4 replacement arguments. Message template with 4 replacement arguments. - See also
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        error(cause: Throwable, template: String, arg1: Any, arg2: Any, arg3: Any): Unit
      
      
      Message template with 3 replacement arguments. Message template with 3 replacement arguments. - See also
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        error(cause: Throwable, template: String, arg1: Any, arg2: Any): Unit
      
      
      Message template with 2 replacement arguments. Message template with 2 replacement arguments. - See also
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        error(cause: Throwable, template: String, arg1: Any): Unit
      
      
      Message template with 1 replacement argument. Message template with 1 replacement argument. - See also
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        error(cause: Throwable, message: String): Unit
      
      
      Log message at error level, including the exception that caused the error. Log message at error level, including the exception that caused the error. - See also
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        finalize(): Unit
      
      
      - Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
 
-  def format(t: String, arg: Any*): String
- 
      
      
      
        
      
    
      
        
        def
      
      
        formatted(fmtstr: String): String
      
      
      - Implicit
- This member is added by an implicit conversion from LoggingAdapter to StringFormat[LoggingAdapter] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        getClass(): Class[_]
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        hashCode(): Int
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        info(template: String, arg1: Any, arg2: Any, arg3: Any, arg4: Any): Unit
      
      
      Message template with 4 replacement arguments. Message template with 4 replacement arguments. - See also
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        info(template: String, arg1: Any, arg2: Any, arg3: Any): Unit
      
      
      Message template with 3 replacement arguments. Message template with 3 replacement arguments. - See also
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        info(template: String, arg1: Any, arg2: Any): Unit
      
      
      Message template with 2 replacement arguments. Message template with 2 replacement arguments. - See also
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        info(template: String, arg1: Any): Unit
      
      
      Message template with 1 replacement argument. Message template with 1 replacement argument. - See also
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        info(message: String): Unit
      
      
      Log message at info level. Log message at info level. - See also
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        isEnabled(level: LogLevel): Boolean
      
      
      - returns
- true if the specified log level is enabled 
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        isInstanceOf[T0]: Boolean
      
      
      - Definition Classes
- Any
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        log(level: LogLevel, template: String, arg1: Any, arg2: Any, arg3: Any, arg4: Any): Unit
      
      
      Message template with 4 replacement arguments. 
- 
      
      
      
        
      
    
      
        
        def
      
      
        log(level: LogLevel, template: String, arg1: Any, arg2: Any, arg3: Any): Unit
      
      
      Message template with 3 replacement arguments. 
- 
      
      
      
        
      
    
      
        
        def
      
      
        log(level: LogLevel, template: String, arg1: Any, arg2: Any): Unit
      
      
      Message template with 2 replacement arguments. 
- 
      
      
      
        
      
    
      
        
        def
      
      
        log(level: LogLevel, template: String, arg1: Any): Unit
      
      
      Message template with 1 replacement argument. 
- 
      
      
      
        
      
    
      
        
        def
      
      
        log(level: LogLevel, message: String): Unit
      
      
      Log message at the specified log level. 
-  def mdc: Logging.MDC
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        ne(arg0: AnyRef): Boolean
      
      
      - Definition Classes
- AnyRef
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        notify(): Unit
      
      
      - Definition Classes
- AnyRef
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        notifyAll(): Unit
      
      
      - Definition Classes
- AnyRef
 
-  final def notifyLog(level: LogLevel, message: String): Unit
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        synchronized[T0](arg0: ⇒ T0): T0
      
      
      - Definition Classes
- AnyRef
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        toString(): String
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @throws( ... )
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(arg0: Long, arg1: Int): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @throws( ... )
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(arg0: Long): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @throws( ... )
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        warning(template: String, arg1: Any, arg2: Any, arg3: Any, arg4: Any): Unit
      
      
      Message template with 4 replacement arguments. Message template with 4 replacement arguments. - See also
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        warning(template: String, arg1: Any, arg2: Any, arg3: Any): Unit
      
      
      Message template with 3 replacement arguments. Message template with 3 replacement arguments. - See also
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        warning(template: String, arg1: Any, arg2: Any): Unit
      
      
      Message template with 2 replacement arguments. Message template with 2 replacement arguments. - See also
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        warning(template: String, arg1: Any): Unit
      
      
      Message template with 1 replacement argument. Message template with 1 replacement argument. - See also
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        warning(message: String): Unit
      
      
      Log message at warning level. Log message at warning level. - See also
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        →[B](y: B): (LoggingAdapter, B)
      
      
      - Implicit
- This member is added by an implicit conversion from LoggingAdapter to ArrowAssoc[LoggingAdapter] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc