The Logger should catch format exceptions in case of wrong usage of the formatted message
methods
-------------------------------------------------------------------------------------------------
Key: JBLOGGING-75
URL:
https://issues.jboss.org/browse/JBLOGGING-75
Project: JBoss Logging
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 3.1.0.CR1
Reporter: Hardy Ferentschik
Assignee: David Lloyd
This avoids exceptions like:
{noformat}
java.util.UnknownFormatConversionException: Conversion = '3'
at java.util.Formatter.checkText(Formatter.java:2503)
at java.util.Formatter.parse(Formatter.java:2485)
at java.util.Formatter.format(Formatter.java:2414)
at java.util.Formatter.format(Formatter.java:2367)
at java.lang.String.format(String.java:2769)
at org.jboss.logging.Log4jLogger.doLogf(Log4jLogger.java:48)
at org.jboss.logging.Logger.logf(Logger.java:2143)
at org.jboss.logging.DelegatingBasicLogger.debugf(DelegatingBasicLogger.java:227)
at org.hibernate.internal.util.EntityPrinter.toString(EntityPrinter.java:121)
...
{noformat}
See also HHH-6817
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira