[logback-user] parameterized logging

Ceki Gülcü ceki at qos.ch
Tue Mar 8 23:03:26 CET 2011


On 08/03/2011 11:00 PM, Christopher Piggott wrote:
> Oh, you know what ... to the appenders that I did NOT write myself it works:
>
>      log.debug("Hi {}", "chris");
> ->  08 Mar 2011 16:56:36.468 DEBUG - com.something.LogResource Hi chris
>
> so the problem is that my home brew Appender (extends AppenderBase) stinks.

You want to to call getFormattedMessage() on ILoggingEvent.

-- 
QOS.ch, main sponsor of cal10n, logback and slf4j open source projects, 
is looking to hire talented software developers. For further details, 
see http://logback.qos.ch/job.html


More information about the Logback-user mailing list