[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
Thu Dec 4 15:59:01 CET 2008
http://bugzilla.slf4j.org/show_bug.cgi?id=116
--- Comment #26 from Ralph Goers <rgoers at apache.org> 2008-12-04 15:59:00 ---
I'm in general agreement with everything you've said.
I saw 2 goals: allowing the message to be internationalized and allowing more
specific formatting of items.
The first is supposedly accomplished because the parameters are no longer
specified by "{}" but by the format expression along with the variable. This
isn't I19N. While it allows the variable to be localized the surrounding text
is still the original text message. To achieve true localization you would need
something like logger.debug(msg1, var1, var2); where the msg text would be
looked up in a catalog.
Allowing more specific formatting is interesting, but it just "feels" wrong to
put the knowledge of the formatting into the application.
Still, I will ponder this and see if I have any better ideas.
--
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