use std::fmt::{Display, Formatter};
pub enum LogLevel {
Error,
Warn,
Info,
}
impl Display for LogLevel {
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
match self {
Self::Error => {
write!(f, "Error")
}
Self::Warn => {
write!(f, "Warn")
}
Self::Info => {
write!(f, "Info")
}
}
}
}