Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.4
-
None
-
None
Description
CsvLogEventLayout generates NanoTime timestamps but these are always zero.
To fix this, add the below code to the CsvLogEventLayout constructor:
// LOG4J2-1074 Switch to actual clock if nanosecond timestamps are required in config. // LoggerContext will notify known NanoClockFactory users that the configuration has changed. NanoClockFactory.setMode(NanoClockFactory.Mode.System);
Attachments
Issue Links
- relates to
-
LOG4J2-1126 Site fixes/improvements for 2.4 release
- Closed