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

Modulesnap-server-1.1.2.1Haskell2010

System.FastLogger

Synopsis
valuenewLogger
  1. :: FilePath

    log file to use

  2. -> IO Logger

Creates a new logger, logging to the given file. If the file argument is "-", then log to stdout; if it's "stderr" then we log to stderr, otherwise we log to a regular file in append mode. The file is closed and re-opened every 15 minutes to facilitate external log rotation.

valuewithLogger
  1. :: FilePath

    log file to use

  2. -> (Logger -> IO a)
  3. -> IO a

Creates a Logger and passes it into the given function, cleaning up with "stopLogger" afterwards.

valuestopLogger :: Logger -> IO ()

Kills a logger thread, causing any unwritten contents to be flushed out to disk