log-base-0.12.0.1: Structured logging solution (base package)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Log.Backend.Text

Description

A logger that produces in-memory Text values. Mainly useful for testing.

Synopsis

Documentation

withSimpleTextLogger :: MonadUnliftIO m => (Logger -> m r) -> m (Text, r) Source #

Create an in-memory logger for the duration of the given action, returning both the result of the action and the logger's output as a Text value afterwards.