Class LogEntry.LogDateFormat

java.lang.Object
org.mockserver.log.model.LogEntry.LogDateFormat
Enclosing class:
LogEntry

public static final class LogEntry.LogDateFormat extends Object
Tiny thread-safe formatter exposing the same format(Date) call shape the previous public DateFormat LOG_DATE_FORMAT field offered, backed by an immutable DateTimeFormatter. Kept as a nested type so existing callers (LOG_DATE_FORMAT.format(new Date(...))) compile unchanged while gaining thread-safety.
  • Method Details

    • format

      public String format(Date date)
    • format

      public String format(long epochMillis)