[slf4j-dev] [Bug 233] New: Improve unsupported operations in bridges

bugzilla-daemon at pixie.qos.ch bugzilla-daemon at pixie.qos.ch
Mon Aug 15 17:51:41 CEST 2011


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

           Summary: Improve unsupported operations in bridges
           Product: SLF4J
           Version: 1.6.x
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: log4j-over-slf4j
        AssignedTo: slf4j-dev at qos.ch
        ReportedBy: laurent.pellegrino at gmail.com


I tried to use log4j-over-slf4j in a legacy project that provides its own
LoggerFactory and when I use log4j-over-slf4j I get for example a
java.lang.NoSuchMethodError for Logger getLogger(String name, LoggerFactory
factory).

Indeed, it seems that log4j-over-slf4j does no support this method. However, I
think it would be nice to provide all the methods that are exposed by the
public log4j API and to throw for example an exception like an
UnsupportedOperationException (with a description message) when the method is
not yet implemented. First, to know (with a clear message) that the bridge does
not support these methods without having to check into the source code in order
to see whether the method is provided or not. But also to help the developers
to know what are the methods they have to implement without making a diff
between the log4j and the log4j-over-slf4j source code.

Maybe this concept can be applied for all the bridge.

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