hakyll-3.2.6.1: A static website compiler library
Hakyll.Core.Logger
Description
Produce pretty, thread-safe logs
Synopsis
data Logger Source
Logger structure. Very complicated.
makeLogger :: (String -> IO ()) -> IO LoggerSource
Create a new logger
flushLogger :: Logger -> IO ()Source
Flush the logger (blocks until flushed)
sectionSource
Arguments
Logger
Section name
No result
Start a section in the log
timedSource
Message
Action
Timed and logged action
Execute a monadic action and log the duration
reportSource
Log something at the same level as timed, but without the timing
timed
thrownSource
Log an error that was thrown in the compilation phase