polysemy-log-0.3.0.1: Polysemy Effects for Logging
Safe HaskellNone
LanguageHaskell2010

Polysemy.Log.Stderr

Description

 
Synopsis

Documentation

interpretDataLogStderrWith :: Member (Embed IO) r => (a -> Text) -> InterpreterFor (DataLog a) r Source #

Interpret DataLog by printing to stderr, converting messages to Text with the supplied function.

interpretDataLogStderr :: Show a => Member (Embed IO) r => InterpreterFor (DataLog a) r Source #

Interpret DataLog by printing to stderr, converting messages to Text by using Show.

interpretLogStderrWith :: Members [Embed IO, GhcTime] r => (LogEntry LogMessage -> Text) -> InterpreterFor Log r Source #

Interpret Log by printing to stderr, converting messages to Text with the supplied function.

interpretLogStderr :: Members [Embed IO, GhcTime] r => InterpreterFor Log r Source #

Interpret Log by printing to stderr, using the default formatter.

Since this adds a timestamp, it has a dependency on GhcTime. Use interpretLogStderr' for a variant that interprets GhcTime in-place.

interpretLogStderr' :: Member (Embed IO) r => InterpreterFor Log r Source #

Interpret Log by printing to stderr, using the default formatter, then interpreting GhcTime.

interpretLogStderrConc :: Members [Resource, Async, Race, Embed IO] r => InterpreterFor Log r Source #

Like interpretLogStderr, but process messages concurrently.