simple-log-0.1: Simple log for Haskell

Safe HaskellNone

System.Log.Config

Synopsis

Documentation

parseRule :: Text -> Writer [Text] RuleSource

Parse rule

Format:

path: rule1, rule2

where "path" is argument for path, and "rule" is one of

  • low low-value for low
  • high high-value for high
  • set low-value high-value for politics
  • use predefind for use

Examples:

 /: use trace
 /foo: low trace
 foo/bar/quux: use silent

parseRule_ :: Text -> RuleSource

Try parse rule ignoring errors

parseRules_ :: Text -> RulesSource

Try parse rules ignoring errors

constant :: Rules -> IO (IO Rules)Source

Constant rules

mvar :: MVar Rules -> IO (IO Rules)Source

Rules from mvar

fileCfg :: FilePath -> Int -> IO (IO Rules)Source

Rules from file