LogflareLogger (Logflare Logger Backend v0.11.0) View Source

Link to this section Summary

Functions

If no argument is provided, returns the LogflareLogger context stored in the process dictionary.

If the argument is an atom, returns LogflareLogger context for the given key. If the argument is a map or keyword list, their keys/values are merged with the existing LogflareLogger context in the process dictionary. Setting the key to nil will remove that key from the context.

If no argument is passed, resets the whole context from the process dictionary. If argument is an atom or a list of atoms, resets the context keeping only the given keys.

Link to this section Functions

Specs

context() :: map()

If no argument is provided, returns the LogflareLogger context stored in the process dictionary.

Specs

context(map() | keyword()) :: map()
context(atom()) :: map()

If the argument is an atom, returns LogflareLogger context for the given key. If the argument is a map or keyword list, their keys/values are merged with the existing LogflareLogger context in the process dictionary. Setting the key to nil will remove that key from the context.

Link to this function

debug(message, metadata \\ [])

View Source
Link to this function

error(message, metadata \\ [])

View Source
Link to this function

info(message, metadata \\ [])

View Source
Link to this function

log(level, message, metadata)

View Source

Specs

reset_context() :: %{}

If no argument is passed, resets the whole context from the process dictionary. If argument is an atom or a list of atoms, resets the context keeping only the given keys.

Specs

reset_context(keyword()) :: map()
Link to this function

warn(message, metadata \\ [])

View Source