Software / code / prosody-modules
Diff
mod_log_ringbuffer/README.markdown @ 5673:0eb2d5ea2428
merge
| author | Stephen Paul Weber <singpolyma@singpolyma.net> |
|---|---|
| date | Sat, 06 May 2023 19:40:23 -0500 |
| parent | 5363:893b9c3c0d20 |
| child | 5876:133b23758cf6 |
line wrap: on
line diff
--- a/mod_log_ringbuffer/README.markdown Wed Feb 22 22:47:45 2023 -0500 +++ b/mod_log_ringbuffer/README.markdown Sat May 06 19:40:23 2023 -0500 @@ -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 = "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"; };