-
Is there an alternative to |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
To follow up on that: After looking at the code I realized I'm not familiar with Erlang, but I wonder if there would be a possibility to handle that differently, so alternative MUC logging modules could exist. |
Beta Was this translation helpful? Give feedback.
-
I am not aware of any other module for MUC room logging. Right, as you noticed, right now mod_muc_room directly calls erlang functions in mod_muc_log. This could be replaced with calls to ejabberd_hooks, and that would allow developers to write alternative modules, and administrators to enable the desired one/ones. As a first experiment, I've applied that proposed change in my fork of ejabberd, see badlop@5262975 There's also an example module, see badlop@0080c8e |
Beta Was this translation helpful? Give feedback.
-
I played around with that a bit and implemented a rudimentary module for logging to a database. Unfortunately, without proper Erlang experience I doubt I'll be able to get that into a polished state for the time being. Your changes to introduce ejabberd hooks do work great as far as I can see, so I'd appreciate if you could merge that to offer flexibility for additional logging modules. |
Beta Was this translation helpful? Give feedback.
Ok, I've merged that patch into ejabberd: d04f92d