(&self, message: &str, extra: Option<HashMap<String, String>>)
| 122 | } |
| 123 | |
| 124 | pub fn debug(&self, message: &str, extra: Option<HashMap<String, String>>) { |
| 125 | if self.should_log(LogLevel::Debug) { |
| 126 | let msg = self.build_message(LogLevel::Debug, message, extra.as_ref()); |
| 127 | if let Ok(mut writer) = self.writer.lock() { |
| 128 | let _ = writer.write_all(msg.as_bytes()); |
| 129 | let _ = writer.flush(); |
| 130 | } |
| 131 | } |
| 132 | } |
| 133 | |
| 134 | pub fn info(&self, message: &str, extra: Option<HashMap<String, String>>) { |
| 135 | if self.should_log(LogLevel::Info) { |
nothing calls this directly
no test coverage detected