Expand description
Flow-level debug logging utilities.
At most one global listener can be registered. When no listener is present,
emit/emit_lazy return quickly with minimal overhead. Listener panics are
isolated with catch_unwind so SDK internal logic remains safe.
Structs§
- Debug
LogListener Error - Log
- One structured log record that can be printed or persisted externally.
Enums§
- LogLevel
- Log severity level for flow debug entries.
Functions§
- debug_
log_ listener_ active - Returns whether a debug log listener is currently registered.
- emit
- Emits one log entry.
- emit_
lazy - Lazily emits a log entry only when listener is active.
- set_
debug_ log_ listener - Sets or clears the global debug log listener.
- try_
set_ debug_ log_ listener - Registers a global singleton debug log listener.
Type Aliases§
- Debug
LogListener - Callback type for global debug log listener.