LogHog.Context (log_hog v0.3.0)

View Source

Context is Logger metadata purposefully set to be exported regardless of LogHog.Config's metadata setting.

Summary

Functions

Obtain the context of the current process.

Set context for the current process.

Types

t()

@type t() :: map()

Functions

get()

@spec get() :: t()

Obtain the context of the current process.

set(new_context)

@spec set(t()) :: :ok

Set context for the current process.