logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scott Deboy (JIRA)" <j...@apache.org>
Subject [jira] Created: (LOG4J2-38) Add receiver state notification support
Date Sun, 30 May 2010 02:31:48 GMT
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,

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

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: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org

View raw message