View Source LogflareLogger.LogParams (Logflare Logger Backend v0.11.4)

Parses and encodes incoming Logger messages for further serialization.

Link to this section Summary

Functions

Creates a LogParams struct when all fields have serializable values

Adds formatted stacktrace to the metadata

Encodes message, if is iodata converts to binary.

Converts erlang datetime tuple into ISO:Extended binary.

All atoms are converted to strings for Logflare server to be able to safely convert binary to terms using :erlang.binary_to_term(binary, [:safe])

Link to this section Functions

Link to this function

convert_initial_call(meta)

View Source
Link to this function

encode(timestamp, level, message, metadata)

View Source

Creates a LogParams struct when all fields have serializable values

Link to this function

encode_crash_reason(meta)

View Source

Adds formatted stacktrace to the metadata

Encodes message, if is iodata converts to binary.

Converts erlang datetime tuple into ISO:Extended binary.

Link to this function

new(timestamp, level, message, metadata)

View Source

All atoms are converted to strings for Logflare server to be able to safely convert binary to terms using :erlang.binary_to_term(binary, [:safe])