Source: icingaweb2 Severity: wishlist
Hey. One way of logging in Icinga Web2 is into files (the other being into syslog). So it would be nice, if the package could contain a: /var/log/icingaweb2 which is automatically set to be owned by the icingaweb2 group (which in turn allows rather easy integration with the various PHP SAPIs, by simply adding whichever effective user the code actually runs as, to that group :) ). It would further be nice, if a logrotate script for the default logfile /var/log/icingaweb2/icingaweb2.log (this is what the webinterface suggests) would be in place. Ideally with the option "notifempty" so that users which don't choose to do file based logging, get an empty rotated file :) Of course "missingok" is also needed. Admittedly I'm a bit uncertain as for how the rotation should work (lograte has different modes): At least with CGI SAPI, the logfile must of course always be reopened on every request,… so one can simply move the logfile to be rotated and doesn't have to create or truncate. IIRC, the options should then be nocopy AND nocopytruncate (in order to override any possible global defaults). But I don't know how things work with the Apache Module SAPI of PHP. Cheers, Chris.