Static MESH_ENABLE_FILE_CAPTURE

Source
pub static MESH_ENABLE_FILE_CAPTURE: Key<bool>
Expand description

When true: if stdio is piped, each child’s StreamFwder also forwards lines to a host-scoped FileAppender managed by the BootstrapProcManager. That appender creates exactly two files per manager instance—one for stdout and one for stderr—and all child processes’ lines are multiplexed into those two files. This can be combined with MESH_ENABLE_LOG_FORWARDING (“stream+local”).

Notes:

  • The on-disk files are aggregate, not per-process. Disambiguation is via the optional rank prefix (see PREFIX_WITH_RANK), which StreamFwder prepends to lines before writing.
  • On local runs, file capture is suppressed unless FORCE_FILE_LOG=true. In that case StreamFwder still runs, but the FileAppender may be None and no files are written.
  • MESH_TAIL_LOG_LINES only controls the in-memory rotating buffer used for peeking—independent of file capture.