ForegroundLog
Module: log::ForegroundLog
Section titled “Module: log::ForegroundLog”Contents
Section titled “Contents”Functions
idle- Inert handle for file mode, where there is no foreground surface.redirect- Redirect the foreground log surface to<dir>/run.logso the wrappedrestore- Restore the foreground log surface to stderr.
firma_run::log::ForegroundLog::idle
Section titled “firma_run::log::ForegroundLog::idle”Function
Inert handle for file mode, where there is no foreground surface.
fn idle() -> Selffirma_run::log::ForegroundLog::redirect
Section titled “firma_run::log::ForegroundLog::redirect”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)firma_run::log::ForegroundLog::restore
Section titled “firma_run::log::ForegroundLog::restore”Function
Restore the foreground log surface to stderr.
fn restore(self: &Self)