Skip to content

ForegroundLog

Functions

  • idle - Inert handle for file mode, where there is no foreground surface.
  • redirect - Redirect the foreground log surface to <dir>/run.log so the wrapped
  • restore - Restore the foreground log surface to stderr.

Function

Inert handle for file mode, where there is no foreground surface.

fn idle() -> Self

Function

Redirect the foreground log surface to <dir>/run.log so the wrapped agent’s TUI is not corrupted by interleaved log lines, while the full record is still captured.

fn redirect(self: &Self, dir: &Path)

Function

Restore the foreground log surface to stderr.

fn restore(self: &Self)