docs: @Override
      public synchronized String format(LogRecord record) {
          StringBuilder sb = new StringBuilder();
  
          ZonedDateTime timestamp = ZonedDateTime.ofInstant(
                  Instant.ofEpochMilli(record.getMillis()),
                  ZoneId.systemDefault());
  
          sb.append(formatter.format(timestamp));
          sb.append(" | ");//$NON-NLS-1$
  
          if (record.getSourceClassName() != null) {
              sb.append(truncate(
                      record.getSourceClassName().substring(
                              record.getSourceClassName().lastIndexOf('.') + 1),
                      30));
          } else {
              sb.append(truncate(record.getLoggerName(), 10));
          }
  
          sb.append(" | "); //$NON-NLS-1$
  
          if (record.getSourceMethodName() != null) {
              sb.append(truncate(record.getSourceMethodName(), 30));
          }
  
          sb.append(" | "); //$NON-NLS-1$
  
          String message = formatMessage(record);
          sb.append(truncate(record.getLevel().getLocalizedName(), MAX_LEVEL_SIZE));
  
          sb.append(" | ");//$NON-NLS-1$
  
          sb.append(message);
  
          sb.append(System.getProperty("line.separator")); //$NON-NLS-1$
          if (record.getThrown() != null) {
              StringWriter sw = new StringWriter();
              PrintWriter pw = new PrintWriter(sw);
              record.getThrown().printStackTrace(pw);
              pw.close();
              sb.append(sw.toString());
          }
          return sb.toString();
      }