[slf4j-dev] [Bug 200] New: Add backwards compatibility to LocationAwareLogger.log

bugzilla-daemon at pixie.qos.ch bugzilla-daemon at pixie.qos.ch
Tue Sep 28 14:10:59 CEST 2010


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

           Summary: Add backwards compatibility to LocationAwareLogger.log
           Product: SLF4J
           Version: 1.6.x
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: Core API
        AssignedTo: slf4j-dev at qos.ch
        ReportedBy: jmachina at millenniumadvisors.com


Version 1.5.x has a 5-parameter log method in LocationAwareLogger, this method
does not exist in 1.6.x, so all legacy code developed to the 1.5.x API cannot
roll seamlessly to 1.6.x.

I would suggest Adding

public void log(Marker marker, String fqcn, int level, String message,
Throwable t);

Back into the LocationAwareLogger interface, knowing that most implementations
can use

public void log(Marker marker, String fqcn, int level, String message,
Throwable t){
log(marker, fqcn, level, message, null, t);
}

to get the backwards compatibility basically for free.


-- 
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