[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
Sun Mar 1 17:52:03 CET 2009
http://bugzilla.slf4j.org/show_bug.cgi?id=116
Alexey Kuznetsov <kuaw26 at mail.ru> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kuaw26 at mail.ru
--- Comment #31 from Alexey Kuznetsov <kuaw26 at mail.ru> 2009-03-01 17:52:02 ---
As for me, I like formatting provided by java.util.Formatter class :)
Formatting with '{}' looks strage for me :)
But reading all comments I see that there 2 problems: perfomance and
java.util.Formatter syntax.
May be it would be good idea to add
public void errorFmt(String format, Object... args);
public void warnFmt(String format, Object... args);
public void debugFmt(String format, Object... args);
public void traceFmt(String format, Object... args);
public void infoFmt(String format, Object... args);
to org.slf4j.Logger.
1) That would not break old code.
2) It would be very clean to undertand that here we are using
java.util.Formatter and in java doc we could point to perfomace penalty.
3) no isDebugEnabled checks for use new xxxxFmt methods.
--
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