[JIRA] (LOGBACK-1272) Make logback in SL4J show relative time (%r) in hours, minutes and seconds

Stefano created LOGBACK-1272: -------------------------------- Summary: Make logback in SL4J show relative time (%r) in hours, minutes and seconds Key: LOGBACK-1272 URL: https://jira.qos.ch/browse/LOGBACK-1272 Project: logback Issue Type: Improvement Components: logback-classic, logback-core Affects Versions: 1.2.1 Reporter: Stefano Assignee: Logback dev list Priority: Minor I know that {{%r}} in logback outputs the relative time from the start of the logging event in milliseconds, but it seems that there's not way to set it in a pattern like {{HH.mm.ss.SSS}}. Unfortunately, something along the lines of {{%r\{HH.mm.ss.SSS}}} (which is the way I do it for the current date/time {{%d}}) doesn't work. I can of course build a {{StopWatch}} object and manually output its value every time I call the logger, but this way seems rather unpractical. Such a feature would be quite useful I think, and I was also suggested to post a feature request here after asking a similar question on [stackoverflow|http://stackoverflow.com/questions/42579880/make-logback-in-sl4j-show-relati...]. -- This message was sent by Atlassian JIRA (v7.3.1#73012)
participants (1)
-
QOS.CH (JIRA)