docs: @SuppressWarnings({ "checkstyle:magicnumber", "checkstyle:returncount" })
  	public static Level fromInt(int num) {
  		switch (num) {
  		case 0:
  			return Level.OFF;
  		case 1:
  			return Level.SEVERE;
  		case 2:
  			return Level.WARNING;
  		case 3:
  			return Level.INFO;
  		case 4:
  			return Level.FINE;
  		case 5:
  			return Level.FINER;
  		case 6:
  			return Level.FINEST;
  		case 7:
  			return Level.ALL;
  		default:
  			if (num < 0) {
  				return Level.OFF;
  			}
  			return Level.ALL;
  		}
  	}