[slf4j-dev] [Bug 116] Switching the log message format to that of java.util.Formatter

bugzilla-daemon at pixie.qos.ch bugzilla-daemon at pixie.qos.ch
Fri Nov 28 17:10:07 CET 2008


http://bugzilla.slf4j.org/show_bug.cgi?id=116





--- Comment #8 from Grzegorz Borkowski <grzegorzborkowski at o2.pl>  2008-11-28 17:10:07 ---
After this discussion, if this improvement would degrade the performance, I
have to probably drop out this proposal. 

The last comment on it: I thought that the current {} syntax is quite uncommon
(though very easy, so this is not big problem). Java uses two formats, AFAIK:
one similar, but a bit different syntax to SLF4J ("some text {0}") and second
the java.util.Formatter (already described). Formatter has more complicated
syntax, but much more powerful. So I thought that it would be better if SLF4J
used one of those "standard" syntaxes. (Perhaps some day SLF4J API could become
part of standard Java API, replacing the JUL - have you though about it?
Personally I believe that logging is so core functionality, that it definitely
should be part of standard Java API - JUL failed, so perhaps should be replaced
with something better - SLF4J seems the best candidate... In such a case using
syntax consisting with other classes of JRE would be an asset)
The second choice is obviously using the "some text {0}" syntax. 


-- 
Configure bugmail: http://bugzilla.slf4j.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the slf4j-dev mailing list