Chat logging

Hi all

I would like to know that, does ejabberd support for chat logging. Because I am developing a web based chat and the problem is that if the page refreshed, the content of the chat disappears. Therefore I have to reload the content of the chat again. Moreover if there are logging facility with the ejabberd server, how can I retrieve them

( I am developing a chat for an existing web application hence it is hard to change that application and stopping refreshing the page)

Thank you

Nishantha

Chat log (XEP-0136) using mod_archive

nishanthaMe wrote:

Because I am developing a web based chat and the problem is that if the page refreshed, the content of the chat disappears. Therefore I have to reload the content of the chat again.

( I am developing a chat for an existing web application hence it is hard to change that application and stopping refreshing the page)

Oh, that would be obviously the best solution, but if that seems hard, you can try using server logging.

nishanthaMe wrote:

does ejabberd support for chat logging.
...
how can I retrieve them

ejabberd 2.0.1 doesn't implement chat logging, but there is a contributed module that implements XEP-0136:
mod_archive. In fact there are several alternative versions of the same module: mnesia storage, sql storage, odbc backend.

Using SVN you download all ejabberd-modules, then compile the module you prefer, install and configure ejabberd.cfg

The Jabber client can retrieve the chat history from the server implementing the corresponding part of XEP-0136.

Syndicate content