View Source Uinta.Formatter.Util (Uinta v0.15.1)

Utilities for building a formatter

Summary

Functions

Stringify as JSON

Format as a map with metadata as a map, timestamp, level, and message.

RFC3339 UTC "Zulu" format.

Functions

encode(formatted_logs)

@spec encode(map()) :: String.t()

Stringify as JSON

format(level, message, timestamp, metadata)

Format as a map with metadata as a map, timestamp, level, and message.

format_timestamp(arg)

@spec format_timestamp(Uinta.Types.time()) :: String.t()

RFC3339 UTC "Zulu" format.