[prev in list] [next in list] [prev in thread] [next in thread] 

List:       log4j-dev
Subject:    [jira] Created: (LOG4J2-38) Add receiver state notification support
From:       "Scott Deboy (JIRA)" <jira () apache ! org>
Date:       2010-05-30 2:31:48
Message-ID: 26342910.69151275186708425.JavaMail.jira () thor
[Download RAW message or body]

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic