Todo #8350: Remove clog in favor of standard syslogd or syslogd alternative with rotation via newsyslog or logrotate
Add GUI options to control log rotation
Some backend options are already supported as of #8350 but there should be GUI options to control log rotation parameters. This should be on status_logs_settings.php and from per-log tabs
- Count (Default = 7)
- Size (Default = <configured default log size>, * to disable size rotate) * This option is already present in both places, but it's worth noting that the old setting was total size of logs, and this is max size of the current log, rotated copies are not counted against the limit.
- When (Default = * to disable time rotate) * The newsyslog time/date format doesn't really lend itself to a GUI, so that may be more trouble than it's worth. If the user wants to do this, we may just take whatever they put in. * Restricted ISO 8601 format for changing at specific times is: @[[[[[cc]yy]mm]dd][T[hh[mm[ss]]]]] * Relative Day/Week/Month is also possible with $[Dhh], $[Ww[Dhh]], and $[Mdd[Dhh]]
- Flags (Default = JC (bzip2, create if it doesn't exist)) * There are lots of available flags, see the man page. Might need to prevent the use of non-bzip compressions, or do a check before reading the logs with bzcat which is currently used unconditionally.
- pidpath (Default = '')
- signal (Default = '')
Move log rotation options to their own section. Issue #9711
While here, fix log size description to fit new behavior.