Log4j 2
  1. Log4j 2
  2. LOG4J2-74

method not working: org.apache.logging.log4j.Logger.error(Marker, Message, Throwable)

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-alpha2
    • Fix Version/s: 2.0-beta1
    • Component/s: Core
    • Labels:
      None

      Description

      Logger.error(Marker, Message, Throwable) doest not work, while:

      • Logger.error(Marker, String, Throwable) works
      • Logger.error(Marker, Message) works.
      • Logger.error(Message, Throwable) works
      • Logger.debug(Marker, Message, Throwable), info, fatal, all work. Only error does not work.

      Java code:
      Logger logger = LogManager.getLogger("test");
      logger.error(MarkerManager.getMarker("TEST"), new SimpleMessage("test1"), new Exception());
      logger.error(MarkerManager.getMarker("TEST"), "test2", new Exception());
      logger.error(new SimpleMessage("test3"), new Exception());
      logger.error(MarkerManager.getMarker("TEST"), new SimpleMessage("test4"));
      logger.debug(MarkerManager.getMarker("TEST"), new SimpleMessage("test5"), new Exception());
      logger.info(MarkerManager.getMarker("TEST"), new SimpleMessage("test6"), new Exception());
      logger.fatal(MarkerManager.getMarker("TEST"), new SimpleMessage("test7"), new Exception());

        Activity

        Frederic Bastian created issue -
        Ralph Goers made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Ralph Goers [ ralph.goers@dslextreme.com ]
        Fix Version/s 2.0-alpha3 [ 12323246 ]
        Resolution Fixed [ 1 ]
        Frederic Bastian made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Ralph Goers
            Reporter:
            Frederic Bastian
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 1h
              1h
              Remaining:
              Remaining Estimate - 1h
              1h
              Logged:
              Time Spent - Not Specified
              Not Specified

                Development