[slf4j-dev] [Bug 246] New: EventLogger.logEvent() does not pass the EventData as an object.

bugzilla-daemon at pixie.qos.ch bugzilla-daemon at pixie.qos.ch
Wed Sep 28 17:05:01 CEST 2011


http://bugzilla.slf4j.org/show_bug.cgi?id=246

           Summary: EventLogger.logEvent() does not pass the EventData as
                    an object.
           Product: SLF4J
           Version: 1.6.x
          Platform: PC
        OS/Version: Mac OS X 10.3
            Status: NEW
          Severity: critical
          Priority: P1
         Component: slf4j-ext
        AssignedTo: slf4j-dev at qos.ch
        ReportedBy: rgoers at apache.org


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);
    }
  }

-- 
Configure bugmail: http://bugzilla.slf4j.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the slf4j-dev mailing list