comparison mod_log_rate/README.markdown @ 1820:8de50be756e5

Various README files: Correct indentation levels, fix syntax and other small fixes
author Kim Alvefur <zash@zash.se>
date Wed, 02 Sep 2015 17:30:33 +0200
parents 4d73a1a6ba68
children
comparison
equal deleted inserted replaced
1819:1b08597b5e6f 1820:8de50be756e5
1 --- 1 ---
2 labels:
3 summary: Collect statistics on rate of log messages 2 summary: Collect statistics on rate of log messages
4 ... 3 ...
5 4
6 Introduction 5 Introduction
7 ============ 6 ============
14 13
15 After [installing the module](https://prosody.im/doc/installing_modules) 14 After [installing the module](https://prosody.im/doc/installing_modules)
16 and adding it to modules\_enabled as most other modules, you also need 15 and adding it to modules\_enabled as most other modules, you also need
17 to add it to your logging config: 16 to add it to your logging config:
18 17
19 log = { 18 ``` {.lua}
20 -- your other log sinks 19 log = {
21 info = "/var/log/prosody/prosody.log" 20 -- your other log sinks
22 -- add this: 21 info = "/var/log/prosody/prosody.log"
23 { to = "measure" } 22 -- add this:
23 { to = "measure" };
24 }
25 ```
24 26
25 Then log messages will be counted by 27 Then log messages will be counted by
26 [statsmanager](https://prosody.im/doc/developers/core/statsmanager). 28 [statsmanager](https://prosody.im/doc/developers/core/statsmanager).
27 29
28 Compatibility 30 Compatibility