public static bool TryToCreateFromInteger(int level, out LogLevel logLevel)
 {
     logLevel = AvailableLevels.FirstOrDefault(x => x.NumericLevel == level);
     if (logLevel == null)
     {
         return(false);
     }
     return(true);
 }
 // parse is not case sensitive
 public static bool TryParse(string type, out LogLevel logLevel)
 {
     logLevel = AvailableLevels.FirstOrDefault(x => string.Compare(type, x.ToString(), StringComparison.OrdinalIgnoreCase) == 0);
     return(logLevel != null);
 }