(&self, f: &mut std::fmt::Formatter<'_>)
| 27 | |
| 28 | impl std::fmt::Display for LogLevel { |
| 29 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { |
| 30 | match self { |
| 31 | LogLevel::Debug => write!(f, "DEBUG"), |
| 32 | LogLevel::Info => write!(f, "INFO"), |
| 33 | LogLevel::Warn => write!(f, "WARN"), |
| 34 | LogLevel::Error => write!(f, "ERROR"), |
| 35 | } |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | static LAST_TIMESTAMP: Mutex<i64> = Mutex::new(0); |
nothing calls this directly
no outgoing calls
no test coverage detected