如何记录通过 ejabberd 传递的消息
我想记录 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我面临着同样的问题。我主要想记录群聊和偶尔的 p2p 聊天,最好是在 mysql 中。
我找到了一个做mysql日志记录的模块,但是需要打补丁并重新编译,不知道以后是否会维护:
http://www.dp.uz.gov.ua/o.palij /mod_logdb/
还有一些其他模组(如 mod_muc_log)。尝试搜索 ejabberd.im
如果 ejabberd 将以编程方式访问(就像我的例子),另一个选项将自动在每个对话中包含一个日志机器人。
不过,我想我将从第一个解决方案开始。
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.
这可能就是您正在寻找的
http://www.ejabberd.im/mod_logxml
this might be what you are looking for
http://www.ejabberd.im/mod_logxml
如果您有兴趣记录群聊的节和状态发生,请使用 mod_muc_log 模块 https://www. ejabberd.im/mod_muc_log
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
这对你们俩来说都是有效的。
http://www.ejabberd.im/install-bandersnatch
This will do the job for both of you.
http://www.ejabberd.im/install-bandersnatch