HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulelog-base-0.12.0.1Haskell2010

Log.Internal.Logger

The Logger type - implementation details.

  • 1 type
  • 4 values
  • Packagelog-base-0.12.0.1
  • 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
valueshutdownLogger :: Logger -> IO ()
#

Shutdown the logger thread associated with this Logger object. Subsequent attempts to write messages via this Logger will result in an exception.

valuewithLogger :: Logger -> (Logger -> IO r) -> IO r
#

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