public void start()

in src/main/java/com/spotify/logging/logback/MillisecondPrecisionSyslogStartConverter.java [62:88]


  public void start() {
    int errorCount = 0;

    final String facilityStr = getFirstOption();
    if (facilityStr == null) {
      addError("was expecting a facility string as an option");
      return;
    }

    facility = SyslogAppenderBase.facilityStringToint(facilityStr);

    localHostName =
        Optional.ofNullable(getContext().getProperty("hostname")).orElse(getLocalHostname());

    try {
      synchronized (this) {
        simpleFormat = createDateFormat();
      }
    } catch (IllegalArgumentException e) {
      addError("Could not instantiate SimpleDateFormat", e);
      errorCount++;
    }

    if (errorCount == 0) {
      super.start();
    }
  }