I want to format the log4j elapsed running-time, %r parameter, in something readable like:
- [00:36:25.844] and [01 13:35:25.844]
- [HH:mm:ss.SSS] ... [dd HH:mm:ss.SSS]
The format:
- %r{HH:mm:ss,SSS}
Didn't work, it just printed the %r time and the literal, "{HH:mm:ss,SSS}".
Alternatively I already have an execution time-stamp string method, is there a way to provide just a custom format without needing to write a custom appender (or equivalent)?
similar questions: