[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
Mon Dec 1 20:10:20 CET 2008


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





--- Comment #16 from Grzegorz Borkowski <grzegorzborkowski at o2.pl>  2008-12-01 20:10:19 ---
This sounds interesting. I was thinking first about using configurable
formatters, but came to the conclusion that this won't work across different
modules that use different formatters, exactly like Ceki described.
However the idea of decorators (or rather adapters?) sounds much better. If I
need in one class the sophisticated date or numbers formatting methods, I could
use the code 
LoggerFactory.getLogger(this.getClass(), new
JavaUtilFormatterMessageDecorator());
and use java.util.Formatter syntax in this class.
Seems it would be portable, backward-compatible, and have all benefits of my
initial proposition.


-- 
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