" public static void configureAndWatch(String configFilename, long delay)
Read the configuration file configFilename if it exists.
Moreover, a thread will be created that will periodically check if configFilename has been created or modified.
The period is determined by the delay argument.
If a change or file creation is detected, then configFilename is read to configure log4j. "
Is there such a method in log4cpp ?
And if not, can I write such a method myself ?
For example:
Cyclical call of method log4cpp::PropertyConfigurator::configure(configurationFile);
A semaphore around the method log4cpp::PropertyConfigurator::configure(configurationFile)
And Semaphore around the calls logging.errorStream() << "error" , logging.debugStream() << "debug", ...
Or is the semaphore around the calls logging.errorStream() << "error" , logging.debugStream() << "debug", ... not necessary ?
Thanks in advance!
Ralf Becker
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In log4j there is a method configureAndWatch:
" public static void configureAndWatch(String configFilename, long delay)
Read the configuration file configFilename if it exists.
Moreover, a thread will be created that will periodically check if configFilename has been created or modified.
The period is determined by the delay argument.
If a change or file creation is detected, then configFilename is read to configure log4j. "
Is there such a method in log4cpp ?
And if not, can I write such a method myself ?
For example:
Cyclical call of method log4cpp::PropertyConfigurator::configure(configurationFile);
A semaphore around the method log4cpp::PropertyConfigurator::configure(configurationFile)
And Semaphore around the calls logging.errorStream() << "error" , logging.debugStream() << "debug", ...
Or is the semaphore around the calls logging.errorStream() << "error" , logging.debugStream() << "debug", ... not necessary ?
Thanks in advance!
Ralf Becker