code: public static LogLevel toLogLevel(Object value) {
  		if (value == null)
  			return LogLevel.Info;
  
  		value = value.toString().toUpperCase();
  		if ("0".equals(value) || "NOTHING".equals(value) || "NONE".equals(value))
  			return LogLevel.None;
  		else if ("1".equals(value) || "FATAL".equals(value))
  			return LogLevel.Fatal;
  		else if ("2".equals(value) || "ERROR".equals(value))
  			return LogLevel.Error;
  		else if ("3".equals(value) || "WARN".equals(value) || "WARNING".equals(value))
  			return LogLevel.Warn;
  		else if ("4".equals(value) || "INFO".equals(value))
  			return LogLevel.Info;
  		else if ("5".equals(value) || "DEBUG".equals(value))
  			return LogLevel.Debug;
  		else if ("6".equals(value) || "TRACE".equals(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