Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Log.Backend.PostgreSQL
Description
PostgreSQL logging back-end.
Synopsis
- withPgLogger :: MonadUnliftIO m => ConnectionSourceM IO -> (Logger -> m r) -> m r
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.