Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-74

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0-alpha2
    • 2.0-beta1
    • Core
    • 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());

      Attachments

        Activity

          People

            rgoers Ralph Goers
            fbastian 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