hakyll-4.9.8.0: A static website compiler library

Safe Haskell | Safe
Language | Haskell98

Hakyll.Core.Logger

Description

Produce pretty, thread-safe logs

Synopsis

- data Verbosity
  - = Error
  - | Message
  - | Debug
- data Logger
- new :: Verbosity -> IO Logger
- flush :: Logger -> IO ()
- error :: MonadIO m => Logger -> String -> m ()
- header :: MonadIO m => Logger -> String -> m ()
- message :: MonadIO m => Logger -> String -> m ()
- debug :: MonadIO m => Logger -> String -> m ()

# Documentation

data Verbosity #

Constructors

Error |
Message |
Debug |

Instances

Eq Verbosity # |
Methods (==) :: Verbosity -> Verbosity -> Bool # (/=) :: Verbosity -> Verbosity -> Bool #
Ord Verbosity # |
Methods compare :: Verbosity -> Verbosity -> Ordering # (<) :: Verbosity -> Verbosity -> Bool # (<=) :: Verbosity -> Verbosity -> Bool # (>) :: Verbosity -> Verbosity -> Bool # (>=) :: Verbosity -> Verbosity -> Bool # max :: Verbosity -> Verbosity -> Verbosity # min :: Verbosity -> Verbosity -> Verbosity #
Show Verbosity # |
Methods showsPrec :: Int -> Verbosity -> ShowS # show :: Verbosity -> String # showList :: [Verbosity] -> ShowS #

data Logger #

Logger structure. Very complicated.

new :: Verbosity -> IO Logger #

Create a new logger

flush :: Logger -> IO () #

Flush the logger (blocks until flushed)

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

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

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

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