When set to some [`log::Level`] the command with its arguments and output will be logged via [`log`] crate. Note that this method is independent from [`Cmd::log_err()`]. Default: `Some(`[`log::Level::Debug`]`)`
(&mut self, level: impl Into<Option<log::Level>>)
| 314 | /// |
| 315 | /// Default: `Some(`[`log::Level::Debug`]`)` |
| 316 | pub fn log_cmd(&mut self, level: impl Into<Option<log::Level>>) -> &mut Self { |
| 317 | self.as_mut().log_cmd = level.into(); |
| 318 | self |
| 319 | } |
| 320 | |
| 321 | /// When set to some [`log::Level`] the invocation error will be logged. |
| 322 | /// Set it to [`None`] or [`log::Level::Trace`] if non-zero exit code is |