(level: &str)
| 11 | |
| 12 | impl LoggingLevel { |
| 13 | pub fn from_attribute(level: &str) -> Option<Self> { |
| 14 | match level { |
| 15 | "debug" => Some(LoggingLevel::Debug), |
| 16 | "critical" => Some(LoggingLevel::Critical), |
| 17 | "error" => Some(LoggingLevel::Error), |
| 18 | "exception" => Some(LoggingLevel::Exception), |
| 19 | "info" => Some(LoggingLevel::Info), |
| 20 | "warn" => Some(LoggingLevel::Warn), |
| 21 | "warning" => Some(LoggingLevel::Warning), |
| 22 | _ => None, |
| 23 | } |
| 24 | } |
| 25 | } |
nothing calls this directly
no outgoing calls
no test coverage detected