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

Log.Backend.StandardOutput.Bulk

Description

Bulk stdout logging back-end.

Synopsis

Documentation

withBulkStdOutLogger :: MonadUnliftIO m => (Logger -> m r) -> m r Source #

Create an asynchronouis logger thread that prints messages to standard output once per second for the duration of the given action. Flushes stdout on each bulk write.

withBulkJsonStdOutLogger :: MonadUnliftIO m => (Logger -> m r) -> m r Source #

Create a bulk logger that prints messages in the JSON format to standard output once per second for the duration of the given action. Flushes stdout on each bulk write.