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

Log4jLoggerAdapter.log(...) ignores argument array

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.6.x
    • Implementations
    • None
    • 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

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

            Dates

              Created:
              Updated: