comparison mod_muclogging.wiki @ 57:1dd6406d8fab

Edited wiki page through web user interface.
author t.ephraim
date Sun, 18 Oct 2009 21:58:00 +0000
parents 4604930cc085
children b823f0ee9cba
comparison
equal deleted inserted replaced
56:844b878a31f9 57:1dd6406d8fab
6 This module logs the conversation of muc running on this server to a daily changing file. 6 This module logs the conversation of muc running on this server to a daily changing file.
7 There is a file per room. 7 There is a file per room.
8 8
9 = Details = 9 = Details =
10 10
11 To enable it, you will need to configure a logFolder at the muc component, which should log. 11 Here is a example config with just the muclogging parts added to the right sections:
12 e.g.
13 {{{ 12 {{{
14 Component "rooms.example.com" "muc" 13 host "*"
15 logFolder = "/var/log/prosody/rooms" 14 muclogging = {
15 folder = "/var/log/prosody/rooms";
16 http_port = 5290;
17 }
18
19 component "rooms.example.com" "muc"
20 logging = true;
16 }}} 21 }}}
17 22
18 In this folder will then created files in form of YearMonthDay_RoomJid.log 23 The http server part would then be reachable at the url:
19 e.g.:
20 {{{ 24 {{{
21 091015_foobar@rooms.example.com.log 25 http://example.com:5290/muclogging/
22 }}}
23
24 The content of the logfile are the presence and message stanza's which depend to this room.
25 They are wrapped around by a <stanza> tag with an additional time attribute.
26 That should make it possible to create nice output in every way.
27 e.g.:
28 {{{
29 <stanza time="23:41:14"><message type='groupchat' from='foobar@rooms.example.com/ephraim' id='aae4a' xmlns='jabber:client'>
30 <body>test</body>
31 <nick xmlns='http://jabber.org/protocol/nick'>Ephraim</nick>
32 </message></stanza>
33 }}} 26 }}}
34 27
35 = TODO = 28 = TODO =
36 * create a simple php script to format the log so the output is more human readable 29 * testing testing