Timber v2.5.5 Timber.CurrentContext

Represents the current context stored in the Elixir.Logger metadata. This module’s sole purposes is to load and persist context from that metadata. The actual context data structure is defined and managed in Timber.Context.

Summary

Functions

Loads the current context from the Elixir.Logger metadata

Save the provided context into the Elixir.Logger metadata

Functions

load()
load() :: Timber.Context.t

Loads the current context from the Elixir.Logger metadata.

save(context)
save(Timber.Context.t) :: :ok

Save the provided context into the Elixir.Logger metadata.