开发者

How to log messages passing through ejabberd

I would like to log when a stanza (message and presence only) was received by the ejabberd server,a nd when it was sent to the other party (or broardcast).

Whats important for me is 开发者_开发技巧to log the stanza and the times they are sent & received.

Thanks.


I'm facing the same problem. I mostly want to log group chats and occasional p2p chats, preferably in mysql. I found a module that does mysql logging, but it needs patching and recompiling, and I dont know if it will be maintained in the future: http://www.dp.uz.gov.ua/o.palij/mod_logdb/

There are some other mods too (like mod_muc_log). Try searching ejabberd.im

If ejabberd will be programatically accessed (like in my case), the other option would be automatically including a logging bot in every conversation.

I think im gonna start with the 1st solution, though.


This will do the job for both of you. http://www.ejabberd.im/install-bandersnatch


this might be what you are looking for

http://www.ejabberd.im/mod_logxml


In case if you are interested to log stanzas and presence occurrence for the group chat, go with mod_muc_log module https://www.ejabberd.im/mod_muc_log

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜