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

JUL-SLF4J Bridge - sourceMethod not logged

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • None
    • None
    • JUL SLF4J Bridge 1.7.x

    Description

      Consider an example from MSSQL JDBC Driver:

      https://github.com/microsoft/mssql-jdbc/blob/77f9f1086049e5ea4ff11fb5434fdd348611ff1e/src/main/java/com/microsoft/sqlserver/jdbc/SQLServerConnection.java#L3253

      loggerExternal.entering(getClassNameLogging(), "commit");

       

      Actual result: The sourceMethodName ("commit") is not passed to the underlying SLF4J implementation, via JUL-SLF4J Bridge.

      I.e. the sourceMethod is not logged in this case.

       

      Expected result: JUL-SLF4J Bridge should pass sourceMethodName to SLF4J implementation.

      Please also check if there are any other such attributes affected.

      Suggested to fix in org.slf4j.bridge.SLF4JBridgeHandler.

      Attachments

        Activity

          People

            slf4j-dev SLF4J developers list
            Pryamostanov Anton
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: