comparison mod_log_rate/README.wiki @ 1782:29f3d6b7ad16

Import wiki pages
author Kim Alvefur <zash@zash.se>
date Mon, 24 Aug 2015 16:43:56 +0200
parents
children
comparison
equal deleted inserted replaced
1781:12ac88940fe3 1782:29f3d6b7ad16
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.