log-base-0.9.0.0: Structured logging solution (base package)

Safe HaskellNone
LanguageHaskell2010

Log.Backend.Text

Description

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

Synopsis

Documentation

withSimpleTextLogger :: (Logger -> IO r) -> IO (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.