-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/


-- | Structured logging solution (PostgreSQL back end)
--   
--   PostgreSQL back end for the <a>log</a> library. Depends on 'log-base'.
@package log-postgres
@version 0.7.0.1


-- | PostgreSQL logging back-end.
module Log.Backend.PostgreSQL

-- | Start an asynchronous logger thread that inserts log messages into a
--   PostgreSQL database.
--   
--   Please use <tt>withPglogger</tt> instead, which is more exception-safe
--   (see the note attached to <a>mkBulkLogger</a>).

-- | <i>Deprecated: Use <a>withPgLogger</a> instead!</i>
pgLogger :: ConnectionSourceM IO -> IO Logger

-- | Create a <a>pgLogger</a> for the duration of the given action, and
--   shut it down afterwards, making sure that all buffered messages are
--   actually written to the DB.
withPgLogger :: ConnectionSourceM IO -> (Logger -> IO r) -> IO r
instance GHC.Enum.Enum Log.Backend.PostgreSQL.InvalidEncodingRecoveryAttempt
