DiscoLog.Context (disco_log v2.0.0-rc.0)
View SourceContext is a map of any terms that DiscoLog attaches to reported occurrences.
The context is stored in Logger
module metadata.
Using context
DiscoLog.Context
is mostly used by DiscoLog itself, but you might find it
useful if you want to add metadata to occurrences and not normal log
messages. Context is always exported, regardless of the :metadata
configuration
option.
Summary
Types
@type t() :: map()