You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "John Meikle (Jira)" <ji...@apache.org> on 2021/08/23 19:24:00 UTC

[jira] [Created] (LOG4J2-3142) Timestamp always returns 0 for LogEventAdapter

John Meikle created LOG4J2-3142:
-----------------------------------

             Summary: Timestamp always returns 0 for LogEventAdapter
                 Key: LOG4J2-3142
                 URL: https://issues.apache.org/jira/browse/LOG4J2-3142
             Project: Log4j 2
          Issue Type: Bug
          Components: log4j 1.2 emulation
    Affects Versions: 2.14.1
            Reporter: John Meikle


When invoking `LogEventAdapter.getTimestamp()` the result is always 0 even if the `LogEvent` used in construction contains a timestamp.

Should consider overriding the method to return `LogEvent.getTimeMillis()` which represents the same thing.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)