[logback-user] parameterized logging

Ceki Gülcü ceki at qos.ch
Tue Mar 8 22:43:24 CET 2011

On 08/03/2011 10:40 PM, Christopher Piggott wrote:
> One other question:
>          String user = "chris";
>          log.debug("User {} is requesting system logs", user );
> the log output I get is:
>          User {} is requesting system logs
> So, clearly, parameterized logging is not working.  I'm using logback
> classic 0.9.27 with slf4j api 1.6.1 and a bunch of other stuff to
> catch j.u.l and j.c.l.
> It looks like parameterized logging has been there for a long time though.
> It should be just that simple, shouldn't it?

What type is the log object? Can you send the output of the following?


QOS.ch, main sponsor of cal10n, logback and slf4j open source projects, 
is looking to hire talented software developers. If interested, please 
email your resume to hr at qos.ch.

More information about the Logback-user mailing list