swebb2066 commented on code in PR #806:
URL: https://github.com/apache/logging-log4cxx/pull/806#discussion_r4462791813
##########
src/main/include/log4cxx/defaultconfigurator.h:
##########
@@ -92,8 +99,9 @@ class LOG4CXX_EXPORT DefaultConfigurator
~~~{.cpp}
DefaultConfigurator::setConfigurationWatchSeconds(1);
~~~
+ @returns The previous value of
LOG4CXX_CONFIGURATION_WATCH_SECONDS in spi::Configurator::properties or
environment variable
*/
- static void setConfigurationWatchSeconds(int seconds);
+ static int setConfigurationWatchSeconds(int seconds);
Review Comment:
While having units managed by the parameter type (`chrono::duration`) is
good, I think it would be overly complicated here, since the environment
variable value is untyped. Also, the method name would need to be unit-agnostic
(e.g. `setConfigurationWatchPeriod`).
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]