code: @Override
      protected void publishTraceLogRecord(TraceWriter detailLog, LogRecord logRecord, Object id, String formattedMsg, String formattedVerboseMsg) {
          if (formattedVerboseMsg == null) {
              formattedVerboseMsg = formatter.formatVerboseMessage(logRecord, formattedMsg, false);
          }
          RoutedMessage routedTrace = new RoutedMessageImpl(formattedMsg, formattedVerboseMsg, null, logRecord);
          //RTC237423: This method (specifically SimpleDateFormat) significantly slows down logging when enabled
          //but the results of this call are not actually used anywhere (for traces), so it can be disabled for now
          //String traceDetail = formatter.traceLogFormat(logRecord, id, formattedMsg, formattedVerboseMsg);
          invokeTraceRouters(routedTrace);
          try {
              if (!(counterForTraceSource.incrementCount() > 2)) {
                  if (traceSource != null) {
                      traceSource.publish(routedTrace, id);
                  }
              }
          } finally {
              counterForTraceRouter.decrementCount();
          }
          trWriter.repositoryPublish(logRecord);
      }
docs: {@inheritDoc}