[ejabberd] ejabberd: logging ip and username

tyju tiui jckdnk111 at yahoo.com
Thu Feb 5 19:42:22 MSK 2009

OK, I found it.
Line 559 in ejabberd_c2s.erl (in 2.0.3) ... I just changed the line to read "StateData#state.ip".
It was too easy I guess :-)

----- Original Message ----
From: tyju tiui <jckdnk111 at yahoo.com>
To: ejabberd at jabber.ru
Sent: Wednesday, February 4, 2009 1:12:12 PM
Subject: [ejabberd] ejabberd: logging ip and username


Is it possible to log a user's IP and username upon successful login? 
I've looked at ejabberd_c2s and ejabberd_listener but I can't seem to figure out how I can get all the info I need in a single log event.
I've also looked at mod_statsdx but I think this is not what I need.

Any advice would be greatly appreciated.



ejabberd mailing list
ejabberd at jabber.ru


More information about the ejabberd mailing list