Safe Haskell | None |
---|
- data Level
- data Politics = Politics {}
- data Rule = Rule {}
- type Rules = [Rule]
- defaultPolitics :: Politics
- debugPolitics :: Politics
- tracePolitics :: Politics
- silentPolitics :: Politics
- rule :: ([Text] -> Bool) -> (Politics -> Politics) -> Rule
- absolute :: [Text] -> [Text] -> Bool
- relative :: [Text] -> [Text] -> Bool
- child :: ([Text] -> Bool) -> [Text] -> Bool
- root :: [Text] -> Bool
- path :: Text -> [Text] -> Bool
- (%=) :: Text -> (Politics -> Politics) -> Rule
- politics :: Level -> Level -> Politics -> Politics
- use :: Politics -> Politics -> Politics
- low :: Level -> Politics -> Politics
- high :: Level -> Politics -> Politics
- data Message = Message {
- messageTime :: ZonedTime
- messageLevel :: Level
- messagePath :: [Text]
- messageText :: Text
- data Converter a = Converter {}
- data Consumer a = Consumer {
- consumerNew :: Bool
- consume :: a -> IO ()
- consumerClose :: IO ()
- data Entry
- data Command
- entries :: [Command] -> [Entry]
- flatten :: [Entry] -> [Message]
- rules :: Rules -> [Text] -> [Entry] -> [Entry]
- data Logger = Logger {
- loggerLog :: Message -> IO ()
- loggerClose :: IO ()
- logger :: Converter a -> IO (Consumer a) -> IO Logger
- type RulesLoad = IO (IO Rules)
- data Log = Log {}
- noLog :: Log
- newLog :: RulesLoad -> [IO Logger] -> IO Log
- writeLog :: Log -> Level -> Text -> IO ()
- scopeLog_ :: Log -> Text -> IO a -> IO a
- scopeLog :: Log -> Text -> IO a -> IO a
- scoperLog :: Show a => Log -> Text -> IO a -> IO a
Documentation
Level of message
Scope politics
Rule for politics
defaultPolitics :: PoliticsSource
Default politics
debugPolitics :: PoliticsSource
Debug politics
tracePolitics :: PoliticsSource
Trace politics
silentPolitics :: PoliticsSource
Silent politics
path :: Text -> [Text] -> BoolSource
Scope-path by text
/ -- root foo/bar -- relative /foo/bar -- absolute foo/bar/ -- child of relative /foo/bar/ -- child of absolute
Log message
Message | |
|
Converts message some representation
Consumer | |
|
logger :: Converter a -> IO (Consumer a) -> IO LoggerSource
Convert consumer creater to logger creater
Log
(MonadCatchIO (ReaderT Log m), MonadCatchIO m) => MonadLog (ReaderT Log m) |