docs: protected void createEventHeader(RepositoryLogRecord record, StringBuilder buffer) {
          if (null == record) {
              throw new IllegalArgumentException("Record cannot be null");
          }
          if (null == buffer) {
              throw new IllegalArgumentException("Buffer cannot be null");
          }
  
          // Create the time stamp
          createEventTimeStamp(record, buffer);
  
          // Add the formatted threadID
          formatThreadID(record, buffer);
  
          // Add in the log record Type
          buffer.append(mapLevelToType(record));
  
          // Add Correlation ID
          ExtensionMapping map = COMPATIBLE_EXTENSIONS.get(0);
          buffer.append(map.newKey).append("=");
          String value = map.getExtension(record);
          if (value != null) {
              buffer.append(value);
          }
  
          // Add Logger Name
          buffer.append(" source=");
          buffer.append(record.getLoggerName());
  
          // Add class name if not null
          if (record.getSourceClassName() != null && record.getSourceClassName() != "") {
              buffer.append(" class=");
              buffer.append(record.getSourceClassName());
          }
  
          // Add method name if not null
          if (record.getSourceMethodName() != null && record.getSourceMethodName() != "") {
              buffer.append(" method=");
              buffer.append(record.getSourceMethodName());
          }
  
          for (int i = 1; i < COMPATIBLE_EXTENSIONS.size(); i++) {
              map = COMPATIBLE_EXTENSIONS.get(i);
              value = map.getExtension(record);
              if (value != null || i == ORG_INDEX || i == PRODUCT_INDEX || i == COMPONENT_INDEX) {
                  buffer.append(" ").append(map.newKey).append("=");
                  if (THREAD_INDEX == i) {
                      buffer.append("[");
                  }
                  buffer.append(value);
                  if (THREAD_INDEX == i) {
                      buffer.append("]");
                  }
              }
          }
  
          Map<String, String> extensions = record.getExtensions();
          if (extensions != null) {
              for (Entry<String, String> extension : record.getExtensions().entrySet()) {
                  if (!PRIVATE_EXTENSIONS.contains(extension.getKey())) {
                      buffer.append(" ").append(extension.getKey()).append("=[").append(extension.getValue()).append("]");
                  }
              }
          }
      }