comparison mod_log_ringbuffer/README.md @ 6333:8a47791338fc

mod_log_ringbuffer: Support multiple triggers simultaneously (e.g. signal + event)
author Matthew Wild <mwild1@gmail.com>
date Thu, 02 Oct 2025 14:41:18 +0100
parents fe081789f7b5
children
comparison
equal deleted inserted replaced
6332:1fc38a840baa 6333:8a47791338fc
60 `filename_template` 60 `filename_template`
61 : This parameter may optionally be specified instead of `filename. It 61 : This parameter may optionally be specified instead of `filename. It
62 may contain a number of variables, described below. Defaults to 62 may contain a number of variables, described below. Defaults to
63 `"{paths.data}/ringbuffer-logs-{pid}-{count}.log"`. 63 `"{paths.data}/ringbuffer-logs-{pid}-{count}.log"`.
64 64
65 Only one of the following triggers may be specified: 65 One or both of the following triggers may be specified:
66 66
67 `signal` 67 `signal`
68 : A signal that will cause the buffer to be dumped, e.g. `"SIGUSR2"`. 68 : A signal that will cause the buffer to be dumped, e.g. `"SIGUSR2"`.
69 Do not use any signal that is used by any other Prosody module, to 69 Do not use any signal that is used by any other Prosody module, to
70 avoid conflicts. 70 avoid conflicts.
71 71
72 `event` 72 `event`
73 : Alternatively, the name of a Prosody global event that will trigger 73 : The name of a Prosody global event that will trigger
74 the logs to be dumped, e.g. `"config-reloaded"`. 74 the logs to be dumped, e.g. `"config-reloaded"`.
75 75
76 ## Filename variables 76 ## Filename variables
77 77
78 If `filename_template` is specified instead of `filename`, it may contain 78 If `filename_template` is specified instead of `filename`, it may contain