Log4j 2
  1. Log4j 2
  2. LOG4J2-127

Methods info, warn, error, fatal with marker and message do not pass the marker

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-beta3
    • Fix Version/s: 2.0-beta4
    • Component/s: API
    • Labels:
      None

      Description

      The follwing methods do not log the message, because the marker is not passed to isXxxEnabled:

      AbstractLogger.info(Marker, Message)
      AbstractLogger.warn(Marker, Message)
      AbstractLogger.error(Marker, Message)
      AbstractLogger.fatal(Marker, Message)

        Activity

        Hide
        Gary Gregory added a comment -

        commit -m "<action issue="LOG4J2-127" dev="rgoers" type="fix">AbstractLogger methods were not passing Markers to the isEnabled methods.</action>..." C:/svn/org/apache/log4j2/trunk/api/src/test/java/org/apache/logging/log4j/AbstractLoggerTest.java C:/svn/org/apache/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/spi/AbstractLogger.java
        Sending C:/svn/org/apache/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/spi/AbstractLogger.java
        Sending C:/svn/org/apache/log4j2/trunk/api/src/test/java/org/apache/logging/log4j/AbstractLoggerTest.java
        Transmitting file data ...
        Committed revision 1414958.

        Show
        Gary Gregory added a comment - commit -m "<action issue=" LOG4J2-127 " dev="rgoers" type="fix">AbstractLogger methods were not passing Markers to the isEnabled methods.</action>..." C:/svn/org/apache/log4j2/trunk/api/src/test/java/org/apache/logging/log4j/AbstractLoggerTest.java C:/svn/org/apache/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/spi/AbstractLogger.java Sending C:/svn/org/apache/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/spi/AbstractLogger.java Sending C:/svn/org/apache/log4j2/trunk/api/src/test/java/org/apache/logging/log4j/AbstractLoggerTest.java Transmitting file data ... Committed revision 1414958.
        Hide
        Ingo Feltes added a comment -

        Patch for API.

        Show
        Ingo Feltes added a comment - Patch for API.
        Hide
        Ingo Feltes added a comment -

        error(Marker, Message) and fatal(Marker, Message) still not working. Please find attached a patch (including tests).

        Show
        Ingo Feltes added a comment - error(Marker, Message) and fatal(Marker, Message) still not working. Please find attached a patch (including tests).
        Hide
        Ralph Goers added a comment -

        The methods were fixed in revision 1412759. Please verify and close.

        Show
        Ralph Goers added a comment - The methods were fixed in revision 1412759. Please verify and close.

          People

          • Assignee:
            Ralph Goers
            Reporter:
            Ingo Feltes
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development