Safe Haskell | None |
---|---|
Language | Haskell98 |
Synopsis
- data Priority
- class Monad m => MonadLogging m where
- debugM :: MonadLogging m => String -> m ()
- infoM :: MonadLogging m => String -> m ()
- noticeM :: MonadLogging m => String -> m ()
- warningM :: MonadLogging m => String -> m ()
- errorM :: MonadLogging m => String -> m ()
- criticalM :: MonadLogging m => String -> m ()
- alertM :: MonadLogging m => String -> m ()
- emergencyM :: MonadLogging m => String -> m ()
Documentation
Priorities are used to define how important a log message is. Users can filter log messages based on priorities.
These have their roots on the traditional syslog system. The standard definitions are given below, but you are free to interpret them however you like. They are listed here in ascending importance order.
DEBUG | Debug messages |
INFO | Information |
NOTICE | Normal runtime conditions |
WARNING | General Warnings |
ERROR | General Errors |
CRITICAL | Severe situations |
ALERT | Take immediate action |
EMERGENCY | System is unusable |
Instances
Bounded Priority | |
Enum Priority | |
Eq Priority | |
Ord Priority | |
Read Priority | |
Show Priority | |
class Monad m => MonadLogging m where Source #
Instances
MonadLogging IO Source # | |
MonadLogging LB Source # | |
MonadLogging m => MonadLogging (Cmd m) Source # | |
MonadLogging m => MonadLogging (ModuleT st m) Source # | |
debugM :: MonadLogging m => String -> m () Source #
infoM :: MonadLogging m => String -> m () Source #
noticeM :: MonadLogging m => String -> m () Source #
warningM :: MonadLogging m => String -> m () Source #
errorM :: MonadLogging m => String -> m () Source #
criticalM :: MonadLogging m => String -> m () Source #
alertM :: MonadLogging m => String -> m () Source #
emergencyM :: MonadLogging m => String -> m () Source #