trace-dispatcher
Safe HaskellSafe-Inferred
LanguageHaskell2010

Cardano.Logging.Formatter

Synopsis

Documentation

metricsFormatter :: forall a m. (LogFormatting a, MonadIO m) => Trace m FormattedMessage -> Trace m a Source #

Format this trace as metrics

preFormatted :: (LogFormatting a, MonadIO m) => Bool -> Trace m PreFormatted -> m (Trace m a) Source #

Transform this trace to a preformatted message, so that double serialization is avoided

forwardFormatter' :: forall m. MonadIO m => Trace m FormattedMessage -> Trace m PreFormatted Source #

Format this trace as TraceObject for the trace forwarder

machineFormatter' :: forall m. MonadIO m => Trace m FormattedMessage -> Trace m PreFormatted Source #

Format this trace as TraceObject for machine-readable text output (JSON)

cborFormatter :: forall a m. (MonadIO m, LogFormatting a) => Trace m FormattedMessage -> m (Trace m a) Source #

cborFormatter' :: forall m. MonadIO m => Trace m FormattedMessage -> Trace m PreFormatted Source #

Format this trace in binary serialisation (CBOR)

humanFormatter :: forall a m. MonadIO m => LogFormatting a => Bool -> Trace m FormattedMessage -> m (Trace m a) Source #

humanFormatter' :: forall m. MonadIO m => Bool -> Trace m FormattedMessage -> Trace m PreFormatted Source #

Format this trace in human readable text output