Home > Blogs > mod_log_chat published
mod_log_chat published
Posted by Jérôme Sautret on 28 Nov 2006 at 18:57
mod_log_chat, a new module for ejabberd, has just been released.
It is aimed at logging chat messages in text files, in plain text or HTML format. It creates one file for each discussion each day.
It has been added in our ejabberd modules repository that can be retrieve with the following command :
svn co https://svn.process-one.net/ejabberd-modules
The files can be browsed on our forge (https://forge.process-one.net/browse/ejabberd-modules/mod_log_chat/trunk).
Comments
Hello,
I was looking for an ejabberd module capable of logging communication as I am planning to use jabber in our company. We would like to abandon e-mail in intra-company communication and use IM instead.
But I have a problem: I could only install ejabberd on Win 2003 Server and I am not able to compile the module. Don’t you guys have already compiled mod_log_chat.beam for Win32 platform? The erlang compiler behaves weird on Windows.
Posted by Pavel Pilat on 05 Feb 2007 at 17:36
Hello,
Yes, we have such a version.
Please, contact me privately (mremond@ourdomain) and I will send you a compiled version.
Posted by Mickaël Rémond on 05 Feb 2007 at 18:03
Hello,
I am also having difficulty with the compiler on the Win32 platforms. I am running Ejabberd on Win2000 Pro. I would like to use mod_log_chat but I am unable to compile the source. If I could get a pre compiled version, I would be very grateful.
Posted by Problems Compiling on 03 May 2007 at 14:41
Hi Mickaël,
May I have the compiled mod_log_chat.beam for Windows 2003?
Regards,
Andy
Posted by Andy Chau on 05 Jun 2007 at 08:19
Hi Mickaël,
I have successfully compiled the mod_log_chat and got the mod_log_chat.beam file. I have put this file to the ebin directory of ejabberd-1.1.3 but I could not turn on this module. Could you please help me to resolve this issue?
Andy
Posted by Andy Chau on 05 Jun 2007 at 11:32
Hello Andy,
You have declare it in the module section of your config file.
For example, to log chat messages for all vhosts in current directory in text format, you can add the following in your modules section in ejabberd.cfg:
{mod_log_chat, []}
The README.txt file describe the steps. See README.txt
This README file points to more configuration example in conf/ejabberd.cfg.sample
I hope this helps,
Posted by Mickaël Rémond on 05 Jun 2007 at 12:17
Hi Mickaël,
May I have the compiled mod_log_chat.beam for Windows 2003 too?
thanks a lot, Romain
Posted by jcdus on 05 Jun 2007 at 23:17
Hi Mickaël,
Thanks for your reply, I finally make it work.
Andy
Posted by Andy Chau on 06 Jun 2007 at 03:57
Hi Romain,
I can give my compiled mod_log_chat.beam file to you. Please give your email address to me.
Andy
Posted by Andy Chau on 06 Jun 2007 at 04:00
Hi Andy,
My adress :
Thanks
Posted by Romain on 06 Jun 2007 at 10:14
Hi Romain,
I have sent the file to you.
Andy
Posted by Andy Chau on 07 Jun 2007 at 02:57
Thanks, but it don’t work on my server…
I don’t understand why…
I try again…
Posted by Romain on 11 Jun 2007 at 14:03
It works for many sites, so there must be an usage problem.
Please, could you be more explicit when posting a “problem” report ?
Otherwise, nobody can help you.
If you do not need it now, you could also wait for addition in the standard ejabberd package.
It is very likely a configuration problem, but I cannot tell more from your comment.
Posted by Mickaël Rémond on 11 Jun 2007 at 14:16
Hi Mickael
Thanks for your reply.
Can you give me your private email ?
I will send you my error report.
Thanks
Posted by Romain on 12 Jun 2007 at 13:14
Hello
Where i put the file mod_log_chat.beam ?
I have a error who says :
=ERROR REPORT==== 13-Jun-2007::18:31:17 ===
beam/beam_load.c(1097): Error loading module mod_log_chat:
use of opcode 125; this emulator supports only up to 115
=ERROR REPORT==== 13-Jun-2007::18:31:17 ===
Loading of c:/Program Files/ejabberd-1.1.2/bin/mod_log_chat.beam failed: badfile
=ERROR REPORT==== 13-Jun-2007::18:31:17 ===
E(<0.40.0>:gen_mod:47): {undef,[{mod_log_chat,
start,
["psi.mydomain.com",[{format,html}]]},
{gen_mod,start_module,3},
{lists,foreach,2},
{ejabberd_app,start,2},
{application_master,start_it_old,4}]}
Can you help me please ?
Posted by Romain on 13 Jun 2007 at 17:33
Hello,
It means that the code you have received from Andy has been compiled with Erlang R11 and that you are using Erlang R10 (thus you cannot load the file).
Please, be aware that this code was release for developers. It will be properly integrated in archive for future version (and thus easy to use).
I do not want to let people be under the impression that you are talking about stable code / release.
I have send you the compiled code by mail, but you have been warned. Put it where you other beam files are.
Posted by Mickaël Rémond on 13 Jun 2007 at 17:40
Any chance you will email me that mod_log_chat.beam filr too? I have erl5.5.5 running the current version of ejabberd but I cant seem to get the thing to compile in win xp.
Thanks,
Jon
Posted by Jon on 25 Sep 2007 at 23:19
you might need my email addy for that request huh . .
Thanks,
Jon
Posted by Jon on 25 Sep 2007 at 23:21
Please, send me pre-compiled mod_log_chat for windows server 2003 to
Thank you!
Posted by Serg on 15 Nov 2007 at 07:10
Running on Gentoo Linux
EJabber 1.1.4
Again and again module crashed with
=ERROR REPORT==== 2007-12-06 17:06:48 ===
E(<0.38.0>:gen_mod:47): {undef,
[{ejabberd_logger,
debug_msg,
[mod_log_chat,
31,
“ ~p ~p~n”,
["taber.ru",
[{path,"/var/log/jabber/chat"},
{format,html}]]]},
{mod_log_chat,start,2},
{gen_mod,start_module,3},
{lists,foreach,2},
{ejabberd_app,start,2},
{application_master,start_it_old,4}]}
Please, any ideas? Very need for this module at this installation…
Posted by olegon on 06 Dec 2007 at 15:09
Add comment
|