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 | |
Data Priority | |
Defined in System.Log gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Priority -> c Priority # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Priority # toConstr :: Priority -> Constr # dataTypeOf :: Priority -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Priority) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Priority) # gmapT :: (forall b. Data b => b -> b) -> Priority -> Priority # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Priority -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Priority -> r # gmapQ :: (forall d. Data d => d -> u) -> Priority -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Priority -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Priority -> m Priority # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Priority -> m Priority # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Priority -> m Priority # | |
Ord Priority | |
Read Priority | |
Show Priority | |
Generic Priority | |
NFData Priority | Since: hslogger-1.3.1.0 |
Defined in System.Log | |
type Rep Priority | |
Defined in System.Log type Rep Priority = D1 ('MetaData "Priority" "System.Log" "hslogger-1.3.1.0-5wuGlq9z9vR9CoeH001Os3" 'False) (((C1 ('MetaCons "DEBUG" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "INFO" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "NOTICE" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "WARNING" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "ERROR" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CRITICAL" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "ALERT" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "EMERGENCY" 'PrefixI 'False) (U1 :: Type -> Type)))) |
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 #