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