-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Scope
A Logger should provide an Enabled
API to let users check if logging is enabled before doing expensive operations.
- Parameters:
- Context (required if only explicit context is supported, optional otherwise; defaults to current context).
- Severity number (optional).
- Event name (optional).
- Return: a boolean (true = enabled, false = disabled).
References:
Logs API: https://opentelemetry.io/docs/specs/otel/logs/api/