cardano-node-socket-emulator-1.2.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

Methods

toJSON :: PrettyObject t -> Value

toEncoding :: PrettyObject t -> Encoding

toJSONList :: [PrettyObject t] -> Value

toEncodingList :: [PrettyObject t] -> Encoding

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

Defined in Plutus.Monitoring.Util

Methods

parseJSON :: Value -> Parser (PrettyObject t)

parseJSONList :: Value -> Parser [PrettyObject t]

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

Defined in Plutus.Monitoring.Util

Methods

toObject :: TracingVerbosity -> PrettyObject t -> Object

textTransformer :: PrettyObject t -> Object -> Text

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

Defined in Plutus.Monitoring.Util

Methods

toText :: PrettyObject t -> Text