Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- type LogItem = SimpleLogPayload
- data LogLine = LogLine Severity LogStr LogItem
- type Log = Output LogLine
- logDebug :: Member Log effs => LText -> Sem effs ()
- logInfo :: Member Log effs => LText -> Sem effs ()
- logNotice :: Member Log effs => LText -> Sem effs ()
- logWarning :: Member Log effs => LText -> Sem effs ()
- logError :: Member Log effs => LText -> Sem effs ()
- logCritical :: Member Log effs => LText -> Sem effs ()
- logAlert :: Member Log effs => LText -> Sem effs ()
- logEmergency :: Member Log effs => LText -> Sem effs ()
- logDebug' :: Member Log effs => LogItem -> LText -> Sem effs ()
- logInfo' :: Member Log effs => LogItem -> LText -> Sem effs ()
- logNotice' :: Member Log effs => LogItem -> LText -> Sem effs ()
- logWarning' :: Member Log effs => LogItem -> LText -> Sem effs ()
- logError' :: Member Log effs => LogItem -> LText -> Sem effs ()
- logCritical' :: Member Log effs => LogItem -> LText -> Sem effs ()
- logAlert' :: Member Log effs => LogItem -> LText -> Sem effs ()
- logEmergency' :: Member Log effs => LogItem -> LText -> Sem effs ()
- echo :: Member Log r => Severity -> LogStr -> Sem r ()
- runLogKatip :: forall m r a. (Member (Embed m) r, Katip m) => SimpleLogPayload -> Sem (Log : r) a -> Sem r a
- runLogDiscard :: Sem (Log : r) a -> Sem r a
Documentation
type LogItem = SimpleLogPayload #
Instances
ToDumpItem (b :: k) (Log :: (Type -> Type) -> Type -> Type) # | |
Defined in Napkin.Run.Effects.Interceptors.LogProgram |
echo :: Member Log r => Severity -> LogStr -> Sem r () #
Deprecated: Replaced by dedicated helper functions
runLogKatip :: forall m r a. (Member (Embed m) r, Katip m) => SimpleLogPayload -> Sem (Log : r) a -> Sem r a #
runLogDiscard :: Sem (Log : r) a -> Sem r a #