1782
|
1 #summary Collect statistics on rate of log messages |
|
2 |
|
3 = Introduction = |
|
4 |
|
5 If you ever wanted to collect statistics on the number of log messages, this is the module for you! |
|
6 |
|
7 = Setup = |
|
8 |
|
9 After [https://prosody.im/doc/installing_modules installing the module] and adding it to modules_enabled as most other modules, you also need to add it to your logging config: |
|
10 |
|
11 {{{ |
|
12 log = { |
|
13 -- your other log sinks |
|
14 info = "/var/log/prosody/prosody.log" |
|
15 -- add this: |
|
16 { to = "measure" } |
|
17 }}} |
|
18 |
|
19 Then log messages will be counted by [https://prosody.im/doc/developers/core/statsmanager statsmanager]. |
|
20 |
|
21 = Compatibility = |
|
22 |
|
23 Reqires Prosody 0.10 or above. |