rm5248 commented on issue #332:
URL: 
https://github.com/apache/logging-log4cxx/issues/332#issuecomment-1902818118

   > > possible to call the DOMConfigurator::configure function multiple times 
in my program
   > 
   > Yes. `DOMConfigurator::configure` is most usefully automatically called 
when you change the configuration file. To use this feature call 
`DOMConfigurator::configureAndWatch`
   
   Note that the `configureAndWatch` methods simply look every X number of 
seconds to see if the file has changed.  You can also load the file as soon as 
it changes using some sort of platform-dependent mechanism(e.g. `inotify` on 
Linux).  If you're using Qt, you can compile the Qt support for Log4cxx and use 
[`log4cxx::qt::configureFromFileAndWatch`](https://github.com/apache/logging-log4cxx/blob/cfcd2ab940dd654ea030c497cb6a7252f1034e1d/src/main/include/log4cxx-qt/configuration.h#L42)
 which does this for you.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@logging.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to