[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
Tue Nov 25 20:52:06 CET 2008
http://bugzilla.slf4j.org/show_bug.cgi?id=116
--- Comment #4 from Grzegorz Borkowski <grzegorzborkowski at o2.pl> 2008-11-25 20:52:06 ---
// I'd like to hear if Grzegorz has had a situation where this change would
// actually have been beneficial, or if this is a "oh, it would be nice
// if..."-situation?
As I mentioned, I took part in a project where we were required to have some
predefined format of dates printed in the log messages. I don't remember
precisely the reason, but the logging was part of requirements and the log
messages were precisely defined by the spec. This is why I'm asking about it.
Regarding performance: one have to measure it, but my guess is that the
performance of formatter for the typical message containing only %s as the
parameter placeholders should be more or less the same as for formatter that
uses messages with {} as placeholders: now the formatter searches for character
'{' in the message, and the java.util.Formatter searches for '%' characters.
Looks similar.
--
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