Skip to main content

Module stream_redirect

Module stream_redirect 

Source
Expand description

Optional process stdout/stderr file redirection.

This is a CLI/deployment helper, not an AFDATA protocol formatter. It redirects stdout and/or stderr to caller-provided files without converting diagnostics such as Rust panic output into JSON.

Structs§

InstalledStreamRedirect
Guard for installed stream redirection.
StreamRedirectConfig
Resolved process stream redirection configuration.

Constants§

STDERR_FILE_ARG
Canonical CLI argument for redirecting stderr.
STDOUT_FILE_ARG
Canonical CLI argument for redirecting stdout.

Functions§

config_from_cli_args
Resolve canonical CLI arguments into a config.
config_from_raw_args
Resolve canonical raw CLI arguments into a config.
install
Install stdout/stderr redirection for a resolved config.
install_from_cli_args
Install stdout/stderr redirection from canonical CLI inputs.
install_from_raw_args
Install stdout/stderr redirection from canonical raw CLI inputs.