Re: ConfiguratonFileWatcher and co

2017-05-06 Thread Gary Gregory
On May 1, 2017 11:04 AM, "Gary Gregory" wrote: Thank you, I'll give it a go. Closing this thread to note that it worked. Thank you Ralph! Gary Gary On Sun, Apr 30, 2017 at 2:51 PM, Ralph Goers wrote: > If it already is monitoring files, no. You can just add your FileWatcher. > If it is n

Re: ConfiguratonFileWatcher and co

2017-05-01 Thread Gary Gregory
Thank you, I'll give it a go. Gary On Sun, Apr 30, 2017 at 2:51 PM, Ralph Goers wrote: > If it already is monitoring files, no. You can just add your FileWatcher. > If it is not then you need to cause the monitoring interval to be set to a > non-zero value. > > Ralph > > > On Apr 30, 2017, at 2

Re: ConfiguratonFileWatcher and co

2017-04-30 Thread Ralph Goers
If it already is monitoring files, no. You can just add your FileWatcher. If it is not then you need to cause the monitoring interval to be set to a non-zero value. Ralph > On Apr 30, 2017, at 2:45 PM, Gary Gregory wrote: > > Log4j is already up and going in my case. Do I need to reconfigure

Re: ConfiguratonFileWatcher and co

2017-04-30 Thread Gary Gregory
Log4j is already up and going in my case. Do I need to reconfigure log4j? Gary On Apr 30, 2017 1:40 PM, "Ralph Goers" wrote: > A WatchManager is always present. You don’t want to create another one. It > just isn’t started if watchManager.getIntervalSeconds() returns zero. > All you really have

Re: ConfiguratonFileWatcher and co

2017-04-30 Thread Ralph Goers
A WatchManager is always present. You don’t want to create another one. It just isn’t started if watchManager.getIntervalSeconds() returns zero. All you really have to do is WatchManager manager = configuration.getWatchManager(); If (manager.getIntervalSeconds == 0) { manager.setIntervalSeco

Re: ConfiguratonFileWatcher and co

2017-04-30 Thread Gary Gregory
Cool. If Log4j is NOT set up to monitor it's config file or if I want a different monitor interface, I can just build a WatchManager with a ConfigurationScheduler? Gary On Sun, Apr 30, 2017 at 11:09 AM, Ralph Goers wrote: > It already is generic. All you have to do is get the WatchManager from

Re: ConfiguratonFileWatcher and co

2017-04-30 Thread Ralph Goers
It already is generic. All you have to do is get the WatchManager from the Configuration and then call watchFile passing the File and the FileWatcher. Ralph > On Apr 30, 2017, at 11:02 AM, Gary Gregory wrote: > > Hi, > > I was hoping I can reuse some of ConfiguratonFileWatcher and co to watch