Log4j 2
  1. Log4j 2
  2. LOG4J2-38

Add receiver state notification support

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Specific scenario:
      For (VFS)LogFilePatternReceiver, setting the 'tailing' flag to true means the receiver continually tracks the current position in the file, and when the file is truncated, it would be helpful to communicate that information back to whoever initialized the receiver (in this case, users may want Chainsaw to automatically clear the log when that happened, or create a new tab, etc).

      I'm not sure if this feature can or should be generalized, but I've heard this request a number of times.

      Maybe this shouldn't be a general concept, maybe a resetableReceiver interface would suffice, and the interface would provide add/removeResetListener. When the file is truncated, the listener would be notified.

      There is already a concept of a VisualReceiver, which allows the same VFS receiver to prompt for user login credentials, so a ResetableReceiver or some other name would be consistent with the extensions already in place to support other interactions with the app managing the receiver.

        Activity

        Scott Deboy created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Scott Deboy
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development