Safe Haskell | None |
---|---|
Language | Haskell2010 |
The LogT
monad transformer for adding logging capabilities to any monad.
Synopsis
- data Logger
- data LoggerEnv = LoggerEnv {}
- type InnerLogT = ReaderT LoggerEnv
- newtype LogT m a = LogT {}
- runLogT :: Text -> Logger -> LogT m a -> m a
- mapLogT :: (m a -> n b) -> LogT m a -> LogT n b
- logMessageIO :: LoggerEnv -> UTCTime -> LogLevel -> Text -> Value -> IO ()
- getLoggerIO :: MonadLog m => m (UTCTime -> LogLevel -> Text -> Value -> IO ())
Documentation
An object used for communication with a logger thread that
outputs LogMessage
s using e.g. PostgreSQL, Elasticsearch or
stdout (depending on the back-end chosen).
The state that every LogT
carries around.
Monad transformer that adds logging capabilities to the underlying monad.