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

        scott deboy created issue -
        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.
        Ralph Goers made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Ralph Goers [ ralph.goers@dslextreme.com ]
        Fix Version/s 2.0-alpha1 [ 12320347 ]
        Resolution Fixed [ 1 ]
        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.
        Ralph Goers made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        188d 13h 37m 1 Ralph Goers 01/May/12 07:25
        Resolved Resolved Closed Closed
        71d 13h 55m 1 Ralph Goers 11/Jul/12 21:20

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development