changeset 57:1dd6406d8fab

Edited wiki page through web user interface.
author t.ephraim
date Sun, 18 Oct 2009 21:58:00 +0000
parents 844b878a31f9
children b823f0ee9cba
files mod_muclogging.wiki
diffstat 1 files changed, 12 insertions(+), 19 deletions(-) [+]
line wrap: on
line diff
--- a/mod_muclogging.wiki	Sun Oct 18 13:30:23 2009 +0000
+++ b/mod_muclogging.wiki	Sun Oct 18 21:58:00 2009 +0000
@@ -8,29 +8,22 @@
 
 = Details =
 
-To enable it, you will need to configure a logFolder at the muc component, which should log.
-e.g.
+Here is a example config with just the muclogging parts added to the right sections:
 {{{
-Component "rooms.example.com" "muc"
-     logFolder = "/var/log/prosody/rooms"
+host "*"
+   muclogging = {
+       folder = "/var/log/prosody/rooms";
+       http_port = 5290;
+    }
+
+component "rooms.example.com" "muc"
+        logging = true;
 }}}
 
-In this folder will then created files in form of YearMonthDay_RoomJid.log
-e.g.:
+The http server part would then be reachable at the url:
 {{{
-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 <stanza> tag with an additional time attribute.
-That should make it possible to create nice output in every way.
-e.g.:
-{{{
-<stanza time="23:41:14"><message type='groupchat' from='foobar@rooms.example.com/ephraim' id='aae4a' xmlns='jabber:client'>
-<body>test</body>
-<nick xmlns='http://jabber.org/protocol/nick'>Ephraim</nick>
-</message></stanza>
+http://example.com:5290/muclogging/
 }}}
 
 = TODO =
- * create a simple php script to format the log so the output is more human readable
+ * testing testing
\ No newline at end of file