# HG changeset patch # User Matthew Wild # Date 1682352668 -3600 # Node ID 893b9c3c0d204dfee3d0741bd94084468d0355f8 # Parent c0493d3173c18fcf01347b82a7a5744f59e81954 mod_log_ringbuffer: Fix description and examples of level configuration diff -r c0493d3173c1 -r 893b9c3c0d20 mod_log_ringbuffer/README.markdown --- 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"; };