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.
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.
@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.