Safe Haskell | Safe-Infered |
---|
- data Logger
- handle :: Logger -> Handle
- makeLoggerWithHandle, productionLogger, developmentLogger :: Handle -> IO Logger
- defaultProductionLogger, defaultDevelopmentLogger :: IO Logger
- toProduction :: Logger -> Logger
- flushLogger :: Logger -> IO ()
- logText :: Logger -> Text -> IO ()
- logLazyText :: Logger -> Text -> IO ()
- logString :: Logger -> String -> IO ()
- logBS :: Logger -> ByteString -> IO ()
- logMsg :: Logger -> [LogStr] -> IO ()
- formatLogText :: Logger -> Loc -> LogLevel -> Text -> IO [LogStr]
- timed :: MonadIO m => Logger -> Text -> m a -> m a
- makeDefaultLogger :: IO Logger
Documentation
makeLoggerWithHandle, productionLogger, developmentLogger :: Handle -> IO LoggerSource
a development logger gets automatically flushed
defaultProductionLogger, defaultDevelopmentLogger :: IO LoggerSource
uses stdout handle
toProduction :: Logger -> LoggerSource
flushLogger :: Logger -> IO ()Source
Execute a monadic action and log the duration