d84914ef1e5a
log_level.rs
/// Severity recorded when a session message is issued.
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum LogLevel {
Info,
Warning,
Error,
}
impl LogLevel {
pub fn as_str(self) -> &'static str {
match self {
Self::Info => "INFO",
Self::Warning => "WARN",
Self::Error => "ERROR",
}
}
}
No file is open. Choose one in the tree, or press Ctrl+O (⌘O on a Mac) to find one by name.
Syntax highlighting could not load. The unmodified read-only text remains available above.