class ApplicationLogListener implements AndroidLogcatService.LogcatListener {

  @Override
  public void onLogLineReceived(@NotNull LogCatMessage line) {
    if (!myPackageName.equals(line.getHeader().getAppName()) || myPid != line.getHeader().getPid()) {
      myActiveHeader = null;
      return;
    }

    String message;
    if (!line.getHeader().equals(myActiveHeader)) {
      myActiveHeader = line.getHeader();
      message = formatLogLine(line);
    }
    else {
      message = AndroidLogcatFormatter.CONTINUATION_INDENT + line.getMessage();
    }

    Key key = AndroidLogcatUtils.getProcessOutputType(myActiveHeader.getLogLevel());
    notifyTextAvailable(message + "\n", key);
  }

  public  ApplicationLogListener(@NotNull String packageName, int pid);

}