Frederic Bastian created LOG4J2-74:
--------------------------------------

             Summary: method not working: 
org.apache.logging.log4j.Logger.error(Marker, Message, Throwable)
                 Key: LOG4J2-74
                 URL: https://issues.apache.org/jira/browse/LOG4J2-74
             Project: Log4j 2
          Issue Type: Bug
          Components: Core
    Affects Versions: 2.0-alpha2
            Reporter: Frederic Bastian


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());


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to