(&self, message: &str, extra: Option<HashMap<String, String>>)
| 132 | } |
| 133 | |
| 134 | pub fn info(&self, message: &str, extra: Option<HashMap<String, String>>) { |
| 135 | if self.should_log(LogLevel::Info) { |
| 136 | let msg = self.build_message(LogLevel::Info, message, extra.as_ref()); |
| 137 | if let Ok(mut writer) = self.writer.lock() { |
| 138 | let _ = writer.write_all(msg.as_bytes()); |
| 139 | let _ = writer.flush(); |
| 140 | } |
| 141 | } |
| 142 | } |
| 143 | |
| 144 | pub fn warn(&self, message: &str, extra: Option<HashMap<String, String>>) { |
| 145 | if self.should_log(LogLevel::Warn) { |
nothing calls this directly
no test coverage detected