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
- All
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[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- 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 theBox
is aFailure
, debug the message concatenated with theFailure
's message. If theFailure
contains anException
, debug that as well. -
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): 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 theBox
is aFailure
, error the message concatenated with theFailure
's message. If theFailure
contains anException
, error that as well. -
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- 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 theBox
is aFailure
, info the message concatenated with theFailure
's message. If theFailure
contains 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
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
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( ... )
-
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 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 theBox
is aFailure
, warn the message concatenated with theFailure
's message. If theFailure
contains anException
, warn that as well.