[slf4j-dev] [Bug 184] Log array contents if only one parameter is specified in log string

bugzilla-daemon at pixie.qos.ch bugzilla-daemon at pixie.qos.ch
Fri Jul 16 18:16:37 CEST 2010


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


Joern Huxhorn <joern at huxhorn.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |joern at huxhorn.de




--- Comment #2 from Joern Huxhorn <joern at huxhorn.de>  2010-07-16 18:16:35 ---
There was a similar bug report for Logback:
http://jira.qos.ch/browse/LBGENERAL-36

The solution involves counting of placeholders before transforming the Object[]
into String[], i.e. handling an Object[] as argument similar to Object[0][] for
a message with only one placeholder.

See
http://github.com/huxi/lilith/blob/master/lilith-data/logging/src/main/java/de/huxhorn/lilith/data/logging/MessageFormatter.java#L240

This should really be fixed if we ever add varargs support to SLF4J...


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