Skip to main content

Module log

Module log 

Source
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§

DebugLogListenerError
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§

DebugLogListener
Callback type for global debug log listener.