Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- handleLogMsgTrace :: forall a m effs. (LastMember m effs, MonadIO m) => Trace m a -> LogMsg a ~> Eff effs
- handleLogMsgTraceMap :: forall b a m effs. (LastMember m effs, MonadIO m) => (b -> a) -> Trace m a -> LogMsg b ~> Eff effs
- handleObserveTrace :: forall effs m a. (LastMember m effs, MonadIO m, MonadCatch m) => Configuration -> Trace m a -> Eff (LogObserve (LogMessage Text) ': effs) ~> Eff effs
- runLogEffects :: forall m l. MonadIO m => Trace m l -> Eff '[LogMsg l, m] ~> m
- convertLog :: (a -> b) -> Trace m b -> Trace m a
- toSeverity :: LogLevel -> Severity
- newtype PrettyObject t = PrettyObject {
- unPrettyObject :: t
Documentation
handleLogMsgTrace :: forall a m effs. (LastMember m effs, MonadIO m) => Trace m a -> LogMsg a ~> Eff effs Source #
Handle the LogMsg
effect by logging messages to a Trace
handleLogMsgTraceMap :: forall b a m effs. (LastMember m effs, MonadIO m) => (b -> a) -> Trace m a -> LogMsg b ~> Eff effs Source #
Handle the LogMsg
effect by logging messages to a mapped Trace
handleObserveTrace :: forall effs m a. (LastMember m effs, MonadIO m, MonadCatch m) => Configuration -> Trace m a -> Eff (LogObserve (LogMessage Text) ': effs) ~> Eff effs Source #
Handle the LogObserve
effect using the Monadic
observer functions
runLogEffects :: forall m l. MonadIO m => Trace m l -> Eff '[LogMsg l, m] ~> m Source #
convertLog :: (a -> b) -> Trace m b -> Trace m a Source #
Convert tracer structured log data
toSeverity :: LogLevel -> Severity Source #
newtype PrettyObject t Source #
A ToObject
instance that uses Pretty
as its textTransformer
Instances
ToJSON t => ToJSON (PrettyObject t) Source # | |
Defined in Plutus.Monitoring.Util toJSON :: PrettyObject t -> Value toEncoding :: PrettyObject t -> Encoding toJSONList :: [PrettyObject t] -> Value toEncodingList :: [PrettyObject t] -> Encoding | |
FromJSON t => FromJSON (PrettyObject t) Source # | |
Defined in Plutus.Monitoring.Util parseJSON :: Value -> Parser (PrettyObject t) parseJSONList :: Value -> Parser [PrettyObject t] | |
Pretty t => ToObject (PrettyObject t) Source # | |
Defined in Plutus.Monitoring.Util toObject :: TracingVerbosity -> PrettyObject t -> Object textTransformer :: PrettyObject t -> Object -> Text | |
Pretty t => ToText (PrettyObject t) Source # | |
Defined in Plutus.Monitoring.Util toText :: PrettyObject t -> Text |