Re: [Cppcms-users] ligging
Brought to you by:
artyom-beilis
From: Artyom B. <art...@ya...> - 2015-12-03 20:46:06
|
> >Hello, guys. >1) Is there any way to use another log destination for some special data? >Ideally, i would like to log app-wide messages to /var/log/my_app.log (with several rotated parts) and some of important network data to another location (1 file per day). It looks like booster::log has a lack of functionality :( Dont you want to switch to spdlog? No currently there is no such functionality, however you can create your own sink object that would provide a filtration and forward it to existing sinks for example. >2) I need to reload configuration, at least application-specific parts. Wat is the best way to achieve it in multithreaded environment? Do I need to make some kind of synchronized wrapper for this part of settings? It would be very useful to implement SIGHUP to refresh logging, custom and, may be, other settings. The simplest is shutdown the cppcms service upon sighup and start it again: http://cppcms.com/wikipp/en/page/cppcms_1x_reload_application Artyom |