pub fn from_string(level: String) -> std::result::Result<Self, LoggerConfigError> {
        match level.as_str() {
            "Error" => Ok(LoggerLevel::Error),
            "Warning" => Ok(LoggerLevel::Warning),
            "Info" => Ok(LoggerLevel::Info),
            "Debug" => Ok(LoggerLevel::Debug),
            invalid_value => Err(LoggerConfigError::InitializationFailure(
                invalid_value.to_string(),
            )),
        }
    }
/// Converts from a logger level value of type String to the corresponding LoggerLevel variant
/// or returns an error if the parsing failed.
Converts from a logger level value of type String to the corresponding LoggerLevel variant
or returns an error if the parsing failed.
Converts from a logger level value of type String to the corresponding LoggerLevel variant or returns an error if the parsing failed .
pub fn from_string(level: String) -> std::result::Result<Self, LoggerConfigError> {
        match level.as_str() {
            "Error" => Ok(LoggerLevel::Error),
            "Warning" => Ok(LoggerLevel::Warning),
            "Info" => Ok(LoggerLevel::Info),
            "Debug" => Ok(LoggerLevel::Debug),
            invalid_value => Err(LoggerConfigError::InitializationFailure(
                invalid_value.to_string(),
            )),
        }
    }
pub fn from_string ( level : String ) -> std :: result :: Result < Self , LoggerConfigError > { match level . as_str ( ) { " " => Ok ( LoggerLevel :: Error ) , " " => Ok ( LoggerLevel :: Warning ) , " " => Ok ( LoggerLevel :: Info ) , " " => Ok ( LoggerLevel :: Debug ) , invalid_value => Err ( LoggerConfigError :: InitializationFailure ( invalid_value . to_string ( ) , ) ) , } }
Converts from a logger level value of type String to the corresponding LoggerLevel variant
or returns an error if the parsing failed.
Converts from a logger level value of type String to the corresponding LoggerLevel variant or returns an error if the parsing failed .
level
String