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

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

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

Stringify as JSON

Link to this function

format(level, message, timestamp, metadata)

View Source

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

@spec format_timestamp(Logger.Formatter.time()) :: String.t()

RFC3339 UTC "Zulu" format.