`date` should be in UTC.
(self, date: NaiveDate)
| 147 | impl ModuleLogsDir { |
| 148 | /// `date` should be in UTC. |
| 149 | pub fn logfile(self, date: NaiveDate) -> ModuleLogPath { |
| 150 | ModuleLogPath(self.0.joined(format!("{date}.log"))) |
| 151 | } |
| 152 | |
| 153 | pub fn today(self) -> ModuleLogPath { |
| 154 | self.logfile(chrono::Utc::now().date_naive()) |