@Override
  public String lookup(String key) {
    Duration duration = Duration.ofNanos(System.nanoTime() - startTime);

    return "%d:%02d:%02d".formatted(
      duration.toHours(),
      duration.toMinutesPart(),
      duration.toSecondsPart()
    );
  }
A log4j plugin that substitutes {@code $${uptime:now}} pattern with the elapsed time of the program in {@code
H:MM:SS} form.
<p>
log4j properties file needs to include {@code packages=com.onthegomap.planetiler.util.log4j} to look in this package
for plugins.
planetiler-core/src/main/java/com/onthegomap/planetiler/util/log4j/ElapsedTimeLookupPlugin.java