[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 23:12:32 CET 2008


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





--- Comment #30 from Ken Dobson <ken at magictractor.co.uk>  2008-12-04 23:12:31 ---
(In reply to comment #29)
> OK. So in addition to formatting parameters the FormatModifier is also in
> charge of obtaining the message. How? Are you assuming that standard resource
> bundles are OK? In my applications they might not be.

FormatModifier is an interface with a single method:
String modifyFormat(String format, Object[] args)

My plan was to provide a ResourceBundleFormatModifier implementation using
standard resource bundles. This would have two constructors, one passed a
Locale, and a no-args constructor using the default Locale.

Users would also be free to write their own implementation of FormatModifier to
meet their own needs.


> I'm not sure I agree that SLF4J should become this complex.

My proposal does not modify core SLF4J in any way, so I don't agree that it's
making it more complex. All of the code would be in SLF4J extensions and would
only be used, or known about, by a minority of users with special requirements.


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