Uploaded image for project: 'SLF4J'
  1. SLF4J
  2. SLF4J-237

EventLogger.logEvent() does not pass the EventData as an object.

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • None
    • 1.6.x
    • slf4j-ext
    • None
    • Operating System: Mac OS X 10.3
      Platform: PC

    Description

      When this was first written LocationAwareLogger did not support passing objects. When it was modified EventLogger should have been modified to pass the EventData as an object but instead passes a null. logEvent should be modified as:

      public static void logEvent(EventData data) {
      if (eventLogger.instanceofLAL) {
      ((LocationAwareLogger) eventLogger.logger).log(EVENT_MARKER, FQCN,
      LocationAwareLogger.INFO_INT, data.toXML(), new Object[]

      {data}

      , null);
      } else

      { eventLogger.logger.info(EVENT_MARKER, data.toXML(), data); }

      }

      Attachments

        Activity

          People

            slf4j-dev SLF4J developers list
            rgoers@apache.org Ralph Goers
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: