Safe Haskell | None |
---|---|
Language | Haskell98 |
DSL/interpreter model for the logger
- data LogLevel
- data LoggerF next
- data CoLoggerF m a = CoLoggerF {}
- log :: (MonadFree f m, LoggerF :<: f) => LogLevel -> Doc -> m ()
- getLogLevel :: (MonadFree f m, LoggerF :<: f) => m LogLevel
- setLogLevel :: (MonadFree f m, LoggerF :<: f) => LogLevel -> m ()
- setColorizeLogs :: (MonadFree f m, LoggerF :<: f) => Bool -> m ()
- flushLogs :: (MonadFree f m, LoggerF :<: f) => m ()
- logDebug :: (MonadFree f m, LoggerF :<: f) => Doc -> m ()
- logInfo :: (MonadFree f m, LoggerF :<: f) => Doc -> m ()
- logWarning :: (MonadFree f m, LoggerF :<: f) => Doc -> m ()
- logError :: (MonadFree f m, LoggerF :<: f) => Doc -> m ()