hakyll-4.16.2.0: A static website compiler library
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hakyll.Core.Logger

Description

Produce pretty, thread-safe logs

Synopsis

Documentation

new :: Verbosity -> IO Logger Source #

Create a new logger

flush :: Logger -> forall m. MonadIO m => m () Source #

Flush the logger (blocks until flushed)

error :: MonadIO m => Logger -> String -> m () Source #

header :: MonadIO m => Logger -> String -> m () Source #

message :: MonadIO m => Logger -> String -> m () Source #

debug :: MonadIO m => Logger -> String -> m () Source #

Testing utilities

newInMem :: IO (Logger, IO [(Verbosity, String)]) Source #

Create a new logger that just stores all the messages, useful for writing tests.