package
context
Type Members
-
case class
Log(channel: Option[String], level: Level, message: String) extends Product with Serializable
-
-
Value Members
-
-
def
typeclassImplementations(colourLogs: Boolean = true, defaultVebosity: Level = Logger.Level.DEBUG, verbosityOverrides: Map[Channel, Level] = Map ())(implicit ec: ExecutionContext): Monad[Type] with Async[Type] with Logger[Type] { implicit val monadFuture: cats.Monad[scala.concurrent.Future] }
Zenith is written in a generic way so that it can be used with different contexts.
This package provides a functional implementation of a
Zenith Context
.This package is not required to use Zenith, rather it is simply an example of how one may choose to implement a
Zenith Context
.The implementation uses Scala
Future
to provide the context's asynchronous functionality and a stack of Monad Transformers to encapsulate all logging and errors. This implementation could easily be changed to use a Twitter or AkkaFuture
in place of the ScalaFuture
.