io.odin.loggers
Type members
Classlikes
AsyncLogger spawns non-cancellable cats.effect.Fiber
with actual log action encapsulated there.
AsyncLogger spawns non-cancellable cats.effect.Fiber
with actual log action encapsulated there.
Use AsyncLogger.withAsync
to instantiate it safely
- Companion
- object
- Companion
- object
- Companion
- object
Logger that extracts context from environment of F[_]
with the help of WithContext type class.
Logger that extracts context from environment of F[_]
with the help of WithContext type class.
One of the examples of F[_]
that has a context is Reader
(also known as Kleisli
) that is abstraction over
function A => M[B]
. If there is a way to extract context Map[String, String]
from the A
(see HasContext),
then it's possible to add this context to the log.
- Companion
- object
Apply given function to each LoggerMessage
before passing it to the next logger
Apply given function to each LoggerMessage
before passing it to the next logger
Default logger that relies on implicits of Clock[F]
and Monad[F]
to get timestamp and create log
message with this timestamp
Default logger that relies on implicits of Clock[F]
and Monad[F]
to get timestamp and create log
message with this timestamp
Write to given log writer with provided formatter
Write to given log writer with provided formatter
- Companion
- object
Filter each LoggerMessage
using given predicate before passing it to the next logger
Filter each LoggerMessage
using given predicate before passing it to the next logger
Pure logger that stores logs in WriterT
log
Pure logger that stores logs in WriterT
log