http://bugzilla.slf4j.org/show_bug.cgi?id=116
--- Comment #27 from Joern Huxhorn <[EMAIL PROTECTED]> 2008-12-04 17:34:17 --- On second (or third) thought, formatting using either java.text.MessageFormatter or java.util.Formatter would be theoretically possible without restraining the functionality as much as I wrote in my last comment... It would "just" be necessary to format the *arguments* according to the formatting statements in the message pattern and change the message pattern back to the original slf4j parameter format. Just to make that clear: I mean that the Object[] args would need to be converted to a String[] argsStr according to the formatting specified in the pattern. I honestly don't want to see the performance of an approach like that 8) Another downside would be that the message pattern in the source code wouldn't be the message pattern that would be used as the localization key... but this would be something that could be handled - in some way... I'm extremely in love with the simplicity of the slf4j message formatter. It's even more concise than java.text.MessageFormatter simplest argument {0} because it omits the argument number. Because of this it even prevents some mistakes (wrong argument type, argument mix-up). And, last but not least, I wanted to emphasize that localization of log messages is something that is generally worth pursuing, IMHO. This is just the wrong place ;) -- Configure bugmail: http://bugzilla.slf4j.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. _______________________________________________ dev mailing list dev@slf4j.org http://www.slf4j.org/mailman/listinfo/dev