Skip to main content

Module logging

Module logging 

Source
Expand description

Durable process logging and low-cost periodic performance summaries.

Rust module processes use one file per PID. That avoids cross-process rename races while preserving a single greppable directory for all AFT activity.

Functions§

init
Initialize the RUST_LOG-filtered stderr logger and its additive file sink.
note_callgraph_invalidations
Called after watcher-driven callgraph refresh_files succeeds for concrete paths.
note_drain_paths
Called when a watcher drain slice takes paths from dispatch continuation state.
note_drain_slice
Called by the standalone request loop before a request-triggered runtime drain.
note_semantic_collect
Called after SemanticIndex::collect_chunks has collected one real file batch.
note_tier2_scan
Called by Tier2PhaseTimings::log after a Tier-2 scan performs measurable work.
note_tool_call_trace
Record a completed subc tool call for slow-call diagnostics and the standing perf-tick window. The writer calls this only after write_all has handed the complete response frame to the transport.
note_watcher_events
Called by drain_watcher_events_bounded for dispatch events actually received.
note_watcher_overflow
Called when drain_watcher_events_bounded receives a rescan-required overflow signal.
perf_tick
Sample executor liveness and emit one busy-only aggregate at the configured cadence.
sync_storage_root
Move subsequent file log writes to a newly configured storage root.