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

Safe HaskellNone
LanguageHaskell2010

Log.Backend.StandardOutput

Description

Stdout logging back-end.

Synopsis

Documentation

withSimpleStdOutLogger :: (Logger -> IO r) -> IO r Source #

Create a simple, synchronous logger that prints messages to standard output and flushes stdout on each call to loggerWriteMessage for the duration of the given action.

withStdOutLogger :: (Logger -> IO r) -> IO r Source #

Create a logger that prints messages to standard output for the duration of the given action.

withJsonStdOutLogger :: (Logger -> IO r) -> IO r Source #

Create a logger that prints messages in the JSON format to standard output for the duration of the given action.