Add receiver state notification support
---------------------------------------
Key: LOG4J2-38
URL: https://issues.apache.org/jira/browse/LOG4J2-38
Project: Log4j 2
Issue Type: New Feature
Reporter: Scott Deboy
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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]