trait Logger extends AnyRef
Logger is a thin wrapper on top of an SLF4J Logger.
The main purpose is to utilize Scala features for logging.
Note that the dynamic type of "this" is used when this trait is mixed in.
This may not always be what you want. If you need the static type, you have
to declare your own Logger:
class MyClass { val logger = Logger(classOf[MyClass]) }
- Alphabetic
- By Inheritance
- Logger
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def _logger: org.slf4j.Logger
- Attributes
- protected
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def assertLog(assertion: Boolean, msg: => String): Unit
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def debug(msg: => AnyRef, t: Throwable, marker: Marker): Unit
- def debug(msg: => AnyRef, marker: Marker): Unit
- def debug(msg: => AnyRef, t: Throwable): Unit
- def debug(msg: => AnyRef): Unit
- def debug(msg: => AnyRef, box: Box[_]): Unit
Debug a
Failure.Debug a
Failure. If the log level is debug and theBoxis aFailure, debug the message concatenated with theFailure's message. If theFailurecontains anException, debug that as well. - final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def error(msg: => AnyRef, t: Throwable, marker: Marker): Unit
- def error(msg: => AnyRef, marker: Marker): Unit
- def error(msg: => AnyRef, t: Throwable): Unit
- def error(msg: => AnyRef): Unit
- def error(msg: => AnyRef, box: Box[_]): Unit
Error a
Failure.Error a
Failure. If the log level is error and theBoxis aFailure, error the message concatenated with theFailure's message. If theFailurecontains anException, error that as well. - def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def info(msg: => AnyRef, t: Throwable, marker: Marker): Unit
- def info(msg: => AnyRef, marker: Marker): Unit
- def info(msg: => AnyRef, t: => Throwable): Unit
- def info(msg: => AnyRef): Unit
- def info(msg: => AnyRef, box: Box[_]): Unit
Info a
Failure.Info a
Failure. If the log level is info and theBoxis aFailure, info the message concatenated with theFailure's message. If theFailurecontains anException, info that as well. - def isDebugEnabled: Boolean
- def isErrorEnabled: Boolean
- def isInfoEnabled: Boolean
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isTraceEnabled: Boolean
- def isWarnEnabled: Boolean
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def trace(msg: => AnyRef, t: Throwable, marker: => Marker): Unit
- def trace(msg: => AnyRef, marker: Marker): Unit
- def trace(msg: => AnyRef, t: Throwable): Unit
- def trace(msg: => AnyRef): Unit
- def trace(msg: => AnyRef, box: Box[_]): Unit
Trace a
Failure. - def trace[T](msg: String, v: T): T
Log the value of v with trace and return v.
Log the value of v with trace and return v. Useful for tracing values in expressions
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def warn(msg: => AnyRef, t: Throwable, marker: Marker): Unit
- def warn(msg: => AnyRef, marker: Marker): Unit
- def warn(msg: => AnyRef, t: Throwable): Unit
- def warn(msg: => AnyRef): Unit
- def warn(msg: => AnyRef, box: Box[_]): Unit
Warn a
Failure.Warn a
Failure. If the log level is warn and theBoxis aFailure, warn the message concatenated with theFailure's message. If theFailurecontains anException, warn that as well.