plutus-chain-index-core-1.2.0.0
Safe Haskell None
Language Haskell2010

Plutus.Monitoring.Util

Synopsis

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