[logback-user] Feature request: elapsed time

Ceki Gülcü ceki at qos.ch
Fri Oct 1 20:45:41 CEST 2010

Hello Chris,

It is actually quite easy to write your own converter with logback. See
http://logback.qos.ch/manual/layouts.html#customConversionSpecifier for 


On 27/09/2010 7:50 PM, Chris wrote:
> This is a request for a new logback feature. Not sure if this is the
> right place to post it.
> I'd love to see a new PatternLayout conversion specifier: %elapsed
> This would show the number of milliseconds elapsed since the last log
> statement. At the moment, the closest option is %relative, which shows
> the elapsed milliseconds since the layout was created.
> I like to log the start and end of different functions so I can see the
> performance of each. At the moment I have to calculate the elapsed time
> in every individual function and log it. It would be easier to have
> logback take care of this for me.

More information about the Logback-user mailing list