如何记录通过 ejabberd 传递的消息

发布于 2024-08-22 01:54:05 字数 105 浏览 3 评论 0原文

我想记录 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

以酷 2024-08-29 01:54:05

我面临着同样的问题。我主要想记录群聊和偶尔的 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.

荒路情人 2024-08-29 01:54:05

如果您有兴趣记录群聊的节和状态发生,请使用 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

吃颗糖壮壮胆 2024-08-29 01:54:05

这对你们俩来说都是有效的。
http://www.ejabberd.im/install-bandersnatch

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文