Changeset

5363:893b9c3c0d20

mod_log_ringbuffer: Fix description and examples of level configuration
author Matthew Wild <mwild1@gmail.com>
date Mon, 24 Apr 2023 17:11:08 +0100
parents 5362:c0493d3173c1
children 5364:0444953e3247
files mod_log_ringbuffer/README.markdown
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mod_log_ringbuffer/README.markdown	Mon Apr 24 17:00:05 2023 +0100
+++ b/mod_log_ringbuffer/README.markdown	Mon Apr 24 17:11:08 2023 +0100
@@ -34,7 +34,7 @@
     error = "/var/log/prosody/prosody.err";
 
     -- Log debug and higher to a 2MB buffer
-    { level = "debug", to = "ringbuffer", size = 1024*1024*2, filename_template = "debug-logs-{pid}-{count}.log", signal = "SIGUSR2" };
+    { to = "ringbuffer", size = 1024*1024*2, filename_template = "debug-logs-{pid}-{count}.log", signal = "SIGUSR2" };
 }
 ```
 
@@ -43,8 +43,8 @@
 `to`
 :   Set this to `"ringbuffer"`.
 
-`level`
-:   The minimum log level to capture, e.g. `"debug"`.
+`levels`
+:   The log levels to capture, e.g. `{ min = "debug" }`. By default, all levels are captured.
 
 `size`
 :   The size, in bytes, of the buffer. When the buffer fills,
@@ -109,7 +109,6 @@
 
 	{
 		to = "ringbuffer";
-		level = "debug";
 		filename_template = "{paths.data}/traceback-{pid}-{count}.log";
 		event = "debug_traceback/triggered";
 	};