package level
Contains composable traits that can be used to add many common level-specific log methods to your custom loggers. They are inspired by various legacy logging technologies.
Each trait defines several methods for logging and level val that can be overridden to control the level at
which those methods log entries. See Logger for an example.
Another example that mixes in a ridiculous set of level methods:
import org.scalawag.timber.api import org.scalawag.timber.api.Dispatcher import org.scalawag.timber.api.level._ class Logger(override val attributes:Map[String,Any] = Map.empty, override val tags:Set[Tag] = Set.empty)(implicit dispatcher: Dispatcher) extends BaseLogger(attributes, tags)(dispatcher) with Emergency with Finest with Warning with Warn
Type Members
- trait Alert extends AnyRef
Mixes in
alertmethods to a BaseLogger. - trait Config extends AnyRef
Mixes in
configmethods to a BaseLogger. - trait Critical extends AnyRef
Mixes in
criticalmethods to a BaseLogger. - trait Debug extends AnyRef
Mixes in
debugmethods to a BaseLogger. - trait Emergency extends AnyRef
Mixes in
emergencymethods to a BaseLogger. - trait Error extends AnyRef
Mixes in
errormethods to a BaseLogger. - trait Fatal extends AnyRef
Mixes in
fatalmethods to a BaseLogger. - trait Fine extends AnyRef
Mixes in
finemethods to a BaseLogger. - trait Finer extends AnyRef
Mixes in
finermethods to a BaseLogger. - trait Finest extends AnyRef
Mixes in
finestmethods to a BaseLogger. - trait Info extends AnyRef
Mixes in
infomethods to a BaseLogger. - trait Notice extends AnyRef
Mixes in
noticemethods to a BaseLogger. - trait Severe extends AnyRef
Mixes in
severemethods to a BaseLogger. - trait Trace extends AnyRef
Mixes in
tracemethods to a BaseLogger. - trait Warn extends AnyRef
Mixes in
warnmethods to a BaseLogger. - trait Warning extends AnyRef
Mixes in
warningmethods to a BaseLogger.