docs: public LocationInfo generateLocationInfo(LoggingEvent event) {
          // If the event is not the same, clear the cache
          if (event != loggingEvent.get()) {
              loggingEvent.set(event);
              clearLocationInfo();
          }
          LocationInfo locationInfo = null;
          try {
              // We should only generate location info if the caller is using NFPatternLayout otherwise this is expensive and unused.
              if (isUsingNFPatternLayout(event.getLogger())) {
                  locationInfo = LoggingContext
                          .getInstance()
                          .getLocationInfo(Class.forName(event.getFQNOfLoggerClass()));
                  if (locationInfo != null) {
                      MDC.put(LOCATION_INFO, locationInfo);
                  }
              }
          } catch (Throwable e) {
              if (CONFIGURATION !=null && CONFIGURATION
                      .shouldPrintLoggingErrors()) {
                  e.printStackTrace();
              }
          }
          return locationInfo;
      }