Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0-alpha1
    • Component/s: None
    • Labels:
      None

      Description

      For apps which require very accurate event times, the timestamp must be provided by the app. In log4j 1.2 it is assigned when the event is created, which is the time the event is appended. This could be many milliseconds after the actual generation of the event. This also gives the app the ability to collect event milestones and then choose at the end of the processing whether or not to have them sent to an appender and still control the timestamp.

        Activity

        Hide
        Ralph Goers added a comment -

        The EventData object in SLF4J has an event timestamp. I didn't carry this forward as a fixed field with StructuredDataMessage but it could be added and honored as a field. It also would be possible to add a TimeStampMessage interface that can be used to mark messages that contain such a timestamp.

        Show
        Ralph Goers added a comment - The EventData object in SLF4J has an event timestamp. I didn't carry this forward as a fixed field with StructuredDataMessage but it could be added and honored as a field. It also would be possible to add a TimeStampMessage interface that can be used to mark messages that contain such a timestamp.
        Hide
        Ralph Goers added a comment -

        I've added the TimestampMessage interface to the experimental Log4j 2.0. The timestamp in the message will be used.

        Show
        Ralph Goers added a comment - I've added the TimestampMessage interface to the experimental Log4j 2.0. The timestamp in the message will be used.
        Hide
        Ralph Goers added a comment -

        TimestampMessage should address this.

        Show
        Ralph Goers added a comment - TimestampMessage should address this.
        Hide
        Ralph Goers added a comment -

        Closing since there have been no other comments since this was marked resolved.

        Show
        Ralph Goers added a comment - Closing since there have been no other comments since this was marked resolved.

          People

          • Assignee:
            Ralph Goers
            Reporter:
            scott deboy
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development