trait
LoggingAdapter extends AnyRef
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
-
abstract
def
notifyError(cause: Throwable, message: String): Unit
-
abstract
def
notifyError(message: String): Unit
-
abstract
def
notifyInfo(message: String): Unit
-
abstract
def
notifyWarning(message: String): Unit
Concrete Value Members
-
final
def
!=(arg0: AnyRef): Boolean
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
def
+(other: String): String
-
-
final
def
==(arg0: AnyRef): Boolean
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
def
debug(template: String, arg1: Any, arg2: Any, arg3: Any, arg4: Any): Unit
-
def
debug(template: String, arg1: Any, arg2: Any, arg3: Any): Unit
-
def
debug(template: String, arg1: Any, arg2: Any): Unit
-
def
debug(template: String, arg1: Any): Unit
-
def
debug(message: String): Unit
-
-
-
def
ensuring(cond: Boolean, msg: ⇒ Any): LoggingAdapter
-
def
ensuring(cond: Boolean): LoggingAdapter
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
error(template: String, arg1: Any, arg2: Any, arg3: Any, arg4: Any): Unit
-
def
error(template: String, arg1: Any, arg2: Any, arg3: Any): Unit
-
def
error(template: String, arg1: Any, arg2: Any): Unit
-
def
error(template: String, arg1: Any): Unit
-
def
error(message: String): Unit
-
def
error(cause: Throwable, template: String, arg1: Any, arg2: Any, arg3: Any, arg4: Any): Unit
-
def
error(cause: Throwable, template: String, arg1: Any, arg2: Any, arg3: Any): Unit
-
def
error(cause: Throwable, template: String, arg1: Any, arg2: Any): Unit
-
def
error(cause: Throwable, template: String, arg1: Any): Unit
-
def
error(cause: Throwable, message: String): Unit
-
def
finalize(): Unit
-
def
format(t: String, arg: Any*): String
-
def
formatted(fmtstr: String): String
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
def
info(template: String, arg1: Any, arg2: Any, arg3: Any, arg4: Any): Unit
-
def
info(template: String, arg1: Any, arg2: Any, arg3: Any): Unit
-
def
info(template: String, arg1: Any, arg2: Any): Unit
-
def
info(template: String, arg1: Any): Unit
-
def
info(message: String): Unit
-
final
def
isEnabled(level: LogLevel): Boolean
-
final
def
isInstanceOf[T0]: Boolean
-
def
log(level: LogLevel, template: String, arg1: Any, arg2: Any, arg3: Any, arg4: Any): Unit
-
def
log(level: LogLevel, template: String, arg1: Any, arg2: Any, arg3: Any): Unit
-
def
log(level: LogLevel, template: String, arg1: Any, arg2: Any): Unit
-
def
log(level: LogLevel, template: String, arg1: Any): Unit
-
def
log(level: LogLevel, message: String): Unit
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
final
def
notifyLog(level: LogLevel, message: String): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
-
def
warning(template: String, arg1: Any, arg2: Any, arg3: Any, arg4: Any): Unit
-
def
warning(template: String, arg1: Any, arg2: Any, arg3: Any): Unit
-
def
warning(template: String, arg1: Any, arg2: Any): Unit
-
def
warning(template: String, arg1: Any): Unit
-
def
warning(message: String): Unit
-
Shadowed Implict Value Members
-
val
self: Any
-
val
self: Any
Inherited from AnyRef
Inherited from Any
Inherited by implicit conversion any2stringadd from
LoggingAdapter to StringAdd
Inherited by implicit conversion any2stringfmt from
LoggingAdapter to StringFormat
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)