[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 22:29:21 CET 2008


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





--- Comment #29 from Ralph Goers <rgoers at apache.org>  2008-12-04 22:29:20 ---
(In reply to comment #28)
> (In reply to comment #26)
> > The first is supposedly accomplished because the parameters are no longer
> > specified by "{}" but by the format expression along with the variable. This
> > isn't I19N.
> 
> That's not the idea. I'll try to clarify matters.
> 
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.

Here is the next wrinkle. How are you obtaining the locale? There is no
standard way to do that across different kinds of applications. For example, in
a portal you'd get it from the user information. In a standalone app you might
use the system default. IIRC, I don't believe there is a standard way to do it
for web apps.

I'm not sure I agree that SLF4J should become this complex. It would seem to me
that it would be much easier to register an "Event Modifier" with Logback and
the formatting would happen there before being passed to appenders.


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