# HG changeset patch # User t.ephraim # Date 1255729597 0 # Node ID 4604930cc085141e19524424e9a9623ada5016e5 # Parent 3530fa4b114cfc650a4b1757558fbe836ced34a8 mod_muclogging initial wiki diff -r 3530fa4b114c -r 4604930cc085 mod_muclogging.wiki --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mod_muclogging.wiki Fri Oct 16 21:46:37 2009 +0000 @@ -0,0 +1,36 @@ +#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. +e.g. +{{{ +Component "rooms.example.com" "muc" + logFolder = "/var/log/prosody/rooms" +}}} + +In this folder will then created files in form of YearMonthDay_RoomJid.log +e.g.: +{{{ +091015_foobar@rooms.example.com.log +}}} + +The content of the logfile are the presence and message stanza's which depend to this room. +They are wrapped around by a tag with an additional time attribute. +That should make it possible to create nice output in every way. +e.g.: +{{{ + +test +Ephraim + +}}} + += TODO = + * create a simple php script to format the log so the output is more human readable