Logflare Logger Backend v0.7.1 LogflareLogger 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

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

Link to this function

context(map)

View Source
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
Link to this function

reset_context()

View Source
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.

Link to this function

reset_context(keys)

View Source
reset_context([atom(), ...]) :: map()
Link to this function

warn(message, metadata \\ [])

View Source