Class Context¶
Defined in File context.hpp
Class Documentation¶
-
class Context¶
A context is the binding between channels and sinks.
Each channel and each sink belongs to exactly one context. Sinks receive advertisements about channels on the context, and can optionally subscribe to receive logged messages on those channels.
When the context is destroyed, its corresponding channels and sinks will be disconnected from one another, and logging will stop. Attempts to log on a channel after its context has been destroyed will elicit a throttled warning message.
Since many applications only need a single context, the SDK provides a static default context for convenience.
Note
Context is fully thread-safe.
Public Functions
-
Context() = default¶
The default global context.
-
Context() = default¶