antikythera v0.4.0 AntikytheraCore.GearLog.ContextHelper View Source
Helpers to get/set context ID.
Context IDs are mainly to be used for logging.
In order to keep Logger
's interface clean (i.e. not to make context_id
trump data solely for logging purpose),
context ID is stored in each process's process dictionary and fetched when a process emits a log message.
Link to this section Summary
Link to this section Functions
Specs
get!() :: Antikythera.ContextId.t()
Specs
set(Antikythera.Conn.t() | Antikythera.Context.t() | Antikythera.ContextId.t()) :: :ok