Copyright | Copyright (c) 2014-2015 PivotCloud, Inc. |
---|---|
License | Apache License, Version 2.0 |
Maintainer | Lars Kuhtz <lkuhtz@pivotmail.com> |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
- data LoggerHandleConfig
- loggerHandleConfigText :: (IsString a, Monoid a) => LoggerHandleConfig -> a
- readLoggerHandleConfig :: (MonadError e m, Eq a, Show a, FoldCase a, IsText a, IsString e, Monoid e) => a -> m LoggerHandleConfig
- validateLoggerHandleConfig :: ConfigValidation LoggerHandleConfig λ
- pLoggerHandleConfig :: Parser LoggerHandleConfig
- pLoggerHandleConfig_ :: Text -> Parser LoggerHandleConfig
- data HandleBackendConfig = HandleBackendConfig {}
- handleBackendConfigHandle :: Lens' HandleBackendConfig LoggerHandleConfig
- handleBackendConfigColor :: Lens' HandleBackendConfig ColorOption
- defaultHandleBackendConfig :: HandleBackendConfig
- validateHandleBackendConfig :: ConfigValidation HandleBackendConfig []
- pHandleBackendConfig :: MParser HandleBackendConfig
- pHandleBackendConfig_ :: Text -> MParser HandleBackendConfig
- withHandleBackend :: (MonadIO m, MonadBaseControl IO m) => HandleBackendConfig -> (LoggerBackend Text -> m α) -> m α
- handleBackend :: Handle -> Bool -> LoggerBackend Text
Handle Configuration
data LoggerHandleConfig Source
loggerHandleConfigText :: (IsString a, Monoid a) => LoggerHandleConfig -> a Source
readLoggerHandleConfig :: (MonadError e m, Eq a, Show a, FoldCase a, IsText a, IsString e, Monoid e) => a -> m LoggerHandleConfig Source
pLoggerHandleConfig :: Parser LoggerHandleConfig Source
:: Text | prefix for the command line options. |
-> Parser LoggerHandleConfig |
Backend Configuration
:: Text | prefix for this and all subordinate command line options. |
-> MParser HandleBackendConfig |
Backend Implementation
withHandleBackend :: (MonadIO m, MonadBaseControl IO m) => HandleBackendConfig -> (LoggerBackend Text -> m α) -> m α Source
:: Handle | |
-> Bool | whether to use ANSI color escape codes |
-> LoggerBackend Text |