+ config: add new logging parameters

Squashed commit of the following:

commit 6ad2014f681fe4c852f208d0dc21fbea5e027c75
Author: Simon Zolin <s.zolin@adguard.com>
Date:   Fri Jun 5 13:55:58 2020 +0300

    update

commit cf9775771a6dad40646d396259955953fca60dd0
Author: Simon Zolin <s.zolin@adguard.com>
Date:   Fri Jun 5 12:36:57 2020 +0300

    defaults

commit d7f1d67dc98bd0f5e34345f7e84051e47eaca554
Author: Simon Zolin <s.zolin@adguard.com>
Date:   Fri Jun 5 12:28:57 2020 +0300

    + config: add new logging parameters
Simon Zolin 2020-06-05 15:50:38 +03:00
parent 62403685ed
commit 9e08daa7df

@ -221,8 +221,14 @@ Settings are stored in [YAML format](https://en.wikipedia.org/wiki/YAML), possib
* `private_key` - PEM-encoded private key.
* `icmp_timeout_msec` - time (ms) to wait for ICMP reply to detect an IP conflict. If 0, the feature is disabled.
* `user_rules` — User-specified filtering rules.
* `log_file` — Path to the log file. If empty, writes to stdout, if `syslog` -- system log (or eventlog on Windows).
* `verbose` — Enable our disables debug verbose output.
* **Log settings**
* `log_file` — Path to the log file. If empty, writes to stdout, if `syslog` -- system log (or eventlog on Windows).
* `log_compress` — Compress determines if the rotated log files should be compressed using gzip (default: false)
* `log_localtime` — If the time used for formatting the timestamps in is the computer's local time (default: false [UTC])
* `log_max_backups` — Maximum number of old log files to retain (MaxAge may still cause them to get deleted) (default: 0, which retains all old log files)
* `log_max_size` — Maximum size in megabytes of the log file before it gets rotated (default: 100 MB)
* `log_max_age` — MaxAge is the maximum number of days to retain old log files (default: 3)
* `verbose` — Enable our disables debug verbose output (default: false)
Removing an entry from settings file will reset it to the default value. Deleting the file will reset all settings to the default values.