Log a command invocation to the global logger. No-op if the logger hasn't been initialized.
(command: &str, duration: Duration, success: bool, error_code: Option<u32>)
| 213 | /// |
| 214 | /// No-op if the logger hasn't been initialized. |
| 215 | pub fn log_command(command: &str, duration: Duration, success: bool, error_code: Option<u32>) { |
| 216 | if let Some(logger) = logger() { |
| 217 | logger.log_command(command, duration, success, error_code); |
| 218 | } |
| 219 | } |
| 220 | |
| 221 | /// Shut down the global telemetry logger gracefully. |
| 222 | /// |