code: def to_log_level(value):
          
          if value == None:
              return LogLevel.Info
  
          value = str(value).upper()
          if ("0" == value) or ("NOTHING" == value) or ("NONE" == value):
              return LogLevel.Nothing
          elif ("1" == value) or ("FATAL" == value):
              return LogLevel.Fatal
          elif ("2" == value) or ("ERROR" == value):
              return LogLevel.Error
          elif ("3" == value) or ("WARN" == value) or ("WARNING" == value):
              return LogLevel.Warn
          elif ("4" == value) or ("INFO" == value):
              return LogLevel.Info
          elif ("5" == value) or ("DEBUG" == value):
              return LogLevel.Debug
          elif ("6" == value) or ("TRACE" == value):
              return LogLevel.Trace
          else:
              return LogLevel.Info
docs: Converts numbers and strings to standard log level values.
  
          :param value: a value to be converted
  
          :return: converted log level