view @ 55:4604930cc085

mod_muclogging initial wiki
author t.ephraim
date Fri, 16 Oct 2009 21:46:37 +0000
children 1dd6406d8fab
line wrap: on
line source

#summary Module which logs muc conversations to a file
#labels Stage-Alpha

= Introduction =

This module logs the conversation of muc running on this server to a daily changing file.
There is a file per room.

= Details =

To enable it, you will need to configure a logFolder at the muc component, which should log.
Component "" "muc"
     logFolder = "/var/log/prosody/rooms"

In this folder will then created files in form of YearMonthDay_RoomJid.log

The content of the logfile are the presence and message stanza's which depend to this room.
They are wrapped around by a <stanza> tag with an additional time attribute.
That should make it possible to create nice output in every way.
<stanza time="23:41:14"><message type='groupchat' from='' id='aae4a' xmlns='jabber:client'>
<nick xmlns=''>Ephraim</nick>

= TODO =
 * create a simple php script to format the log so the output is more human readable