Add EpochConverter for milliseconds/seconds since epoch (related to issue #968) by duncanj · Pull Request #1000 · qos-ch/logback (original) (raw)

Provides EpochConverter for including elapsed milliseconds or seconds since standard UNIX epoch (time elapsed since January 1, 1970, midnight UTC/GMT) in the log message:

I have this requirement at work, and it's been mentioned in issue #968 and in PR#969 and PR#970 which were closed as the implementation was non-optimal.

Please let me know any improvements or mistakes. Thanks!