code: func ParseLevel(level string) (api.Level, error) {
  	for i, name := range levelNames {
  		if strings.EqualFold(name, level) {
  			return api.Level(i), nil
  		}
  	}
  	return api.ERROR, errors.New("logger: invalid log level")
  }
docs: // ParseLevel returns the log level from a string representation.