[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
Sat Nov 29 20:34:24 CET 2008


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


Ken Dobson <ken at magictractor.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ken at magictractor.co.uk




--- Comment #11 from Ken Dobson <ken at magictractor.co.uk>  2008-11-29 20:34:24 ---
I propose that the style of SLF4J message formatting be made configurable.

By default, SLF4J would use the existing MessageFormatter (its constructor
would probably need to be made public). However, a line could be added to
logback.xml to specify an alternative formatter.

There would be a new interface which all formatters would implement, allowing
users to implement their own formatter. This would also provide an elegant
solution for internationalization, since an alternative formatter
implementation could get Strings from a resource bundle.

I think this could be implemented with no impact on the performance of default
formatting, while allowing the flexibility requested here and in bug 50
(internationalization).


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