CustomLogger
Interface for custom logger implementations. Provides both string-based and structured LogMessage-based logging.
Implementations receive every record the SDK produces. Per-record filtering (by level, format, or sampling) is the implementation's responsibility — typically inside the debug / trace / info / warn / error methods or in the downstream sink they delegate to. The SDK does not route records based on a per-logger level threshold.
The only knob the SDK consults on this interface before preparing expensive debug payloads is isDebugEnabled, and that is a performance hint — see its KDoc for details.
Properties
Functions
Log a debug message with structured data.
Log a debug message with a string.
Log an error message with structured data.
Log an error message with a string.
Log an info message with structured data.
Log an info message with a string.
Hint to the SDK whether preparing expensive DEBUG payloads (message fingerprinting, UTF-8 truncation on publish/signal/subscribe) is worthwhile for this logger. Return false if the downstream sink is configured at INFO or higher; the SDK will skip that work unless another attached sink still needs DEBUG payloads.
Log a trace message with structured data.
Log a trace message with a string.
Log a warning message with structured data.
Log a warning message with a string.