You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by "Ralph Goers (JIRA)" <ji...@apache.org> on 2012/09/03 02:32:07 UTC
[jira] [Resolved] (LOG4J2-74) method not working:
org.apache.logging.log4j.Logger.error(Marker, Message, Throwable)
[ https://issues.apache.org/jira/browse/LOG4J2-74?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ralph Goers resolved LOG4J2-74.
-------------------------------
Resolution: Fixed
Fix Version/s: 2.0-alpha3
Assignee: Ralph Goers
The method was internally using Level.TRACE instead of Level.ERROR. Please retest and then close.
> 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
> Assignee: Ralph Goers
> Fix For: 2.0-alpha3
>
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> 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: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org