[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
Wed Dec 3 20:39:14 CET 2008


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


Ralph Goers <rgoers at apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rgoers at apache.org




--- Comment #20 from Ralph Goers <rgoers at apache.org>  2008-12-03 20:39:14 ---
Several things about this bother me.
1. Although Ceki is correct that entry and exit wouldn't need these extensions,
there is no reason the formatter can't be smart enough to handle the old syntax
and the new syntax.
2. Using XLogger for entry and exit and a new extended logger for other logging
is a pain.
3. Having all these Logger factories is annoying. If we are going to keep
creating new types of Loggers then the base LoggerFactory should be enhanced to
allow new ways of creating Loggers to be injected into it.
4. Having to provide the message formatter on getLogger is rather annoying. 

I would prefer an approach where the choice to use an extended message
formatter can be configured. Any extended message formatter should be required
to extend the base message formatter and delegate to it to handle the existing
syntax. It should only replace tokens it is configured to handle.


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