Logger.Backend.Humio.TimeFormat (logger_humio_backend v0.2.3) View Source

Helpers for formatting timestamps to ISO8601. The Elixir logger provides the timestamp to backends as a {{year, month, day}, {hour, minute, second, millisecond}} tuple but without timestamp information.

Link to this section Summary

Functions

By default should be called with arity 0, which then determines if the :utc_log option is set. Based on that information, returns a function that will correctly format an Elixir Logger timestmap to ISO8601.

Link to this section Functions

Link to this function

iso8601_format_fun(utc? \\ utc_log_enabled?())

View Source

By default should be called with arity 0, which then determines if the :utc_log option is set. Based on that information, returns a function that will correctly format an Elixir Logger timestmap to ISO8601.