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

Log4jLoggerAdapter.log(...) ignores argument array

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 1.6.x
    • Fix Version/s: None
    • Component/s: Implementations
    • Labels:
      None
    • Environment:

      Operating System: Linux
      Platform: PC

      Description

      The implementation of

      Log4jLoggerAdapter.log(Marker marker, String callerFQCN, int level, String msg, Object[] argArray, Throwable t)

      seems to assume that the the "msg" parameter is the formatted message, not the format string. The same class, however, contains other methods that perform correct formatting of the format string.

      Therefore, either a clarification in the javadocs of LocationAwareLogger is needed to specify that the "msg" parameter must already be the formatted message, or the implementation in Log4jLoggerAdapter is missing the formatting step.

      Thanks !

        Attachments

          Activity

            People

            • Assignee:
              slf4j-dev SLF4J developers list
              Reporter:
              sbordet Simone Bordet
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: