HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Modulelog-base-0.12.1.0Haskell2010

Log.Internal.Logger

The Logger type - implementation details.

Synopsis
  • Packagelog-base-0.12.1.0
  • Exports5
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceLogger.hs
datadata Logger

An object used for communication with a logger thread that outputs LogMessages using e.g. PostgreSQL, Elasticsearch or stdout (depending on the back-end chosen).

Constructors

  • Logger
    • loggerWriteMessage :: !LogMessage -> IO ()

      Output a LogMessage.

    • loggerWaitForWrite :: !IO ()

      Wait for the logger to output all messages in its input queue (in the case logging is done asynchronously).

    • loggerShutdown :: !IO ()

      Kill the logger thread. Subsequent attempts to write messages to the logger will raise an exception.

Instances2Semigroup, Monoid
valuewithLogger :: Logger -> (Logger -> IO r) -> IO r

bracket-like execution of an IO action, verifying all messages are properly logged. See mkBulkLogger.