summaryrefslogtreecommitdiff
path: root/doc/en/includes/autogen_user_options.en.adoc
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2022-09-28 20:32:12 +0200
committerSébastien Helleu <flashcode@flashtux.org>2022-09-28 20:52:59 +0200
commit7711ed95c5959be5b4fa75b6366a653ce3308a9d (patch)
treee395b8da0487bea8b124b40a76ed4602f339451c /doc/en/includes/autogen_user_options.en.adoc
parent26e6fdc64561d7575b3c937a9bb4f39cc8c0954f (diff)
downloadweechat-7711ed95c5959be5b4fa75b6366a653ce3308a9d.zip
logger: add options to rotate and compress log files (closes #314)
New options: - logger.file.rotation_compression_level - logger.file.rotation_compression_type - logger.file.rotation_size_max
Diffstat (limited to 'doc/en/includes/autogen_user_options.en.adoc')
-rw-r--r--doc/en/includes/autogen_user_options.en.adoc18
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/en/includes/autogen_user_options.en.adoc b/doc/en/includes/autogen_user_options.en.adoc
index fa8c4f1e1..ef167826c 100644
--- a/doc/en/includes/autogen_user_options.en.adoc
+++ b/doc/en/includes/autogen_user_options.en.adoc
@@ -1468,6 +1468,24 @@
** values: any string
** default value: `+"_"+`
+* [[option_logger.file.rotation_compression_level]] *logger.file.rotation_compression_level*
+** description: pass:none[compression level for rotated log files (with extension ".1", ".2", etc.), if option logger.file.rotation_compression_type is enabled: 1 = low compression / fast ... 100 = best compression / slow; the value is a percentage converted to 1-9 for gzip and 1-19 for zstd; the default value is recommended, it offers a good compromise between compression and speed]
+** type: integer
+** values: 1 .. 100
+** default value: `+20+`
+
+* [[option_logger.file.rotation_compression_type]] *logger.file.rotation_compression_type*
+** description: pass:none[compression type for rotated log files; if set to "none", rotated log files are not compressed; WARNING: if rotation was enabled with another type of compression (or no compression), you must first unload the logger plugin, compress files with the new type (or decompress files), then change the option in logger.conf, then load the logger plugin]
+** type: integer
+** values: none, gzip, zstd
+** default value: `+none+`
+
+* [[option_logger.file.rotation_size_max]] *logger.file.rotation_size_max*
+** description: pass:none[when this size is reached, a rotation of log files is performed: the existing rotated log files are renamed (.1 becomes .2, .2 becomes .3, etc.) and the current file is renamed with extension .1; an integer number with a suffix is allowed: b = bytes (default if no unit given), k = kilobytes, m = megabytes, g = gigabytes, t = terabytes; example: "2g" causes a rotation if the file size is > 2,000,000,000 bytes; if set to "0", no rotation is performed (unlimited log size); WARNING: before changing this option, you should first set the compression type via option logger.file.rotation_compression_type]
+** type: string
+** values: any string
+** default value: `+"0"+`
+
* [[option_logger.file.time_format]] *logger.file.time_format*
** description: pass:none[timestamp used in log files (see man strftime for date/time specifiers)]
** type: string