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