log-postgres-0.9.0.1: Structured logging solution (PostgreSQL back end)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Log.Backend.PostgreSQL

Description

PostgreSQL logging back-end.

Synopsis

Documentation

withPgLogger :: MonadUnliftIO m => ConnectionSourceM IO -> (Logger -> m r) -> m r Source #

Create a pgLogger for the duration of the given action, and shut it down afterwards, making sure that all buffered messages are actually written to the DB.