log-postgres-0.7.0.2: Structured logging solution (PostgreSQL back end)

Safe HaskellNone
LanguageHaskell2010

Log.Backend.PostgreSQL

Description

PostgreSQL logging back-end.

Synopsis

Documentation

pgLogger :: ConnectionSourceM IO -> IO Logger Source #

Deprecated: Use withPgLogger instead!

Start an asynchronous logger thread that inserts log messages into a PostgreSQL database.

Please use withPglogger instead, which is more exception-safe (see the note attached to mkBulkLogger).

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