plutus-chain-index-core-0.1.0.0
Safe HaskellNone
LanguageHaskell2010

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

toSeverity :: LogLevel -> Severity Source #

newtype PrettyObject t Source #

A ToObject instance that uses Pretty as its textTransformer

Constructors

PrettyObject 

Fields

Instances

Instances details
ToJSON t => ToJSON (PrettyObject t) Source # 
Instance details

Defined in Plutus.Monitoring.Util

FromJSON t => FromJSON (PrettyObject t) Source # 
Instance details

Defined in Plutus.Monitoring.Util

Pretty t => ToText (PrettyObject t) Source # 
Instance details

Defined in Plutus.Monitoring.Util

Pretty t => ToObject (PrettyObject t) Source # 
Instance details

Defined in Plutus.Monitoring.Util

Methods

toObject :: TracingVerbosity -> PrettyObject t -> Object

textTransformer :: PrettyObject t -> Object -> Text