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

JUL-SLF4J Bridge - sourceMethod not logged

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      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

            Assignee:
            slf4j-dev SLF4J developers list
            Reporter:
            Pryamostanov Anton
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: