View Source LogflareLogger (Logflare Logger Backend v0.11.4)

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

@spec context() :: map()

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

@spec context(map() | keyword()) :: map()
@spec 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
@spec 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.

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

warn(message, metadata \\ [])

View Source