yesod-core-0.9.4.1: Creation of type-safe, RESTful web applications.

Yesod.Logger

Synopsis

Documentation

data Logger

makeDefaultLogger :: IO Logger

uses stdout handle

timed

Arguments

:: MonadIO m 
=> Logger

Logger

-> Text

Message

-> m a

Action

-> m a

Timed and logged action

Execute a monadic action and log the duration

logMsg :: Logger -> [LogStr] -> IO ()