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
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 Source # toEncoding :: PrettyObject t -> Encoding Source # toJSONList :: [ PrettyObject t] -> Value Source # toEncodingList :: [ PrettyObject t] -> Encoding Source # |
|
FromJSON t => FromJSON ( PrettyObject t) Source # | |
Defined in Plutus.Monitoring.Util parseJSON :: Value -> Parser ( PrettyObject t) Source # parseJSONList :: Value -> Parser [ PrettyObject t] Source # |
|
Pretty t => ToText ( PrettyObject t) Source # | |
Defined in Plutus.Monitoring.Util toText :: PrettyObject t -> Text Source # |
|
Pretty t => ToObject ( PrettyObject t) Source # | |
Defined in Plutus.Monitoring.Util toObject :: TracingVerbosity -> PrettyObject t -> Object textTransformer :: PrettyObject t -> Object -> Text |