Skip to main content

Module trace_flush

Module trace_flush 

Source
Expand description

Global trace log flush hook.

Allows any crate (including vtcode-tui) to trigger a trace log flush without depending on vtcode-core. The flush callback is registered once during tracing initialization and can be invoked from signal handlers or shutdown sequences.

Functionsยง

flush_trace_log
Flush the global trace log writer.
register_trace_flush_hook
Register a flush callback. Called once during tracing initialization.