Commit 66aa10c
committed
Compare LogEvent by full instant time
Replace nano-of-millisecond comparison with a combined Instant-based time. The comparator now imports org.apache.logging.log4j.core.time.Instant and uses a new getTime(LogEvent) that adds instant.getEpochMillisecond() and instant.getNanoOfMillisecond() (returning a long) for ordering, instead of comparing only getNanoOfMillisecond(). Method renamed and return type adjusted accordingly.1 parent ddd916e commit 66aa10c
1 file changed
Lines changed: 5 additions & 3 deletions
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
42 | | - | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | | - | |
46 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
47 | 49 | | |
48 | 50 | | |
0 commit comments