DEV Community

Discussion on: Logging done right, makes your life bright!

Collapse
 
zegio profile image
Tony

Happen to have a working snippet for how you handled watching the config file and propagating changes live?

Collapse
 
grhegde09 profile image
Gajanan

We used QFileSystemWatcher to watch the config file and added a thread-safe method to the logger apply the new config.
You can find some example code for QFileSystemWatcher here