code: static Map<String, String> keyValueMapFor(String logLine) {
          Map<String, String> keyValueMap = new HashMap<String, String>();
          Matcher matcher = KEY_VALUE_HOLDER_PATTERN.matcher(logLine);
          if (matcher.find()) {
              for (String keyValuePair : matcher.group(1).split(",")) {
                  int separatorIndex = keyValuePair.indexOf("=");
                  if (separatorIndex > 0) {
                      String key = keyValuePair.substring(0, separatorIndex);
                      String value = keyValuePair.substring(separatorIndex + 1);
                      keyValueMap.put(key, value);
                  }
              }
          }
          return keyValueMap;
      }
docs: Parse the logline into key-value pairs. The logline format is comma-separated
  key-value pairs surrounded by curly braces, ie:
  
  {foo=bar,name=ARandomName}
  
  The logline can also be prefixed with data like '02-28 11:37:49.629 D/screenshot_request(26711): '
  depending on what you pass to the '-v' logcat option