Log4cplus file properties are not read at run time

Is there any configuration that helps log4cplus collect dynamic changes? I am changing the properties of log4cplus at runtime and want log4cplus to dynamically select these changes.

+4
source share
1 answer

There is a class ConfigureAndWatchThreadthat you can create. It will spawn a thread that will track changes in the time changes in this configuration file. When he notices a change in the time of a change in the future of the last recorded modification time, he will delete all previously created instances of magazines and additives, etc. And reconfigure everything.

, . , . - , .

+3

All Articles