[slf4j-dev] [Bug 51] API limits log messages to type String

bugzilla-daemon at pixie.qos.ch bugzilla-daemon at pixie.qos.ch
Mon Jun 25 21:32:02 CEST 2007


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


listid at qos.ch changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX




------- Comment #2 from listid at qos.ch  2007-06-25 21:32 -------
Hi Robert,

SLF4J indeed restricts the type of the message to String instead of Object.
This restriction paves the way for parameterized logging which is not possible
when the message type is Object.

For logging systems such as logback that natively implement the SLF4J API, you
can write

 logger.debug("{}", myObject);

Logback has access to myObject directly and your custom appender could handle
it
as an object instead of string.

As there are technical reasons for the SLF4J being the way it is, I am afraid I
cannot fix this bug.

My apologies for the inconvenience,


-- 
Configure bugmail: http://bugzilla.slf4j.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the slf4j-dev mailing list