pub fn plan_logging(
command: Option<&Command>,
level: Option<LogLevel>,
rust_log: Option<&str>,
) -> LoggingPlanExpand description
The --log-level flag and the per-invocation decision it feeds. Re-exported
for main.rs, which is where the subscriber is installed.
The --log-level flag and the per-invocation decision it feeds. Re-exported
for main.rs, which is where the subscriber is installed.
The --log-level flag and the per-invocation decision it feeds. Re-exported
for main.rs, which is where the subscriber is installed.
Decides what this invocation logs, from the subcommand and the two ways an
operator can ask.
Pure, and here rather than in src/main.rs because that file is excluded
from the coverage floor: every rule below is a row of a table test.
rust_log counts only when non-empty, which is
no_color_set’s judgement applied to the other ambient
environment variable this CLI reads. A RUST_LOG= left behind by a
${RUST_LOG:-}-style shell default is not somebody asking for logs, and
treating it as one would put records back in the pipe this exists to keep
clean.