Get the current log file path (date-based rotation).
(&self)
| 149 | |
| 150 | /// Get the current log file path (date-based rotation). |
| 151 | fn log_path(&self) -> PathBuf { |
| 152 | let date_str = chrono::Local::now().format("%Y-%m-%d"); |
| 153 | self.log_dir.join(format!("telemetry-{date_str}.log")) |
| 154 | } |
| 155 | |
| 156 | /// Log a command invocation. |
| 157 | /// |