trace-dispatcher-2.5.2: Tracers for Cardano
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) => [BackendConfig] -> Trace m (PreFormatted a) -> m (Trace m a) Source #

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

forwardFormatter' :: forall a m. MonadIO m => Maybe Text -> Trace m FormattedMessage -> Trace m (PreFormatted a) Source #

Format this trace as TraceObject for the trace forwarder

machineFormatter' :: forall a m. MonadIO m => Maybe Text -> Trace m FormattedMessage -> Trace m (PreFormatted a) Source #

Format this trace as TraceObject for the trace forwarder

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

humanFormatter' :: forall a m. MonadIO m => Bool -> Maybe Text -> Trace m FormattedMessage -> Trace m (PreFormatted a) Source #

Format this trace in human readable style