Ryan Moreton wrote:

Hi Serge,

Thanks for this, I'll look into this and let you know how I get on. Is it
possible to get this information through to the database so I can run some
automated reports on it?


Well you would have to do this with your own tables, and so on. As to get the current connection, you can retrieve it this way :

org.jahia.services.database.ConnectionDispenser.getConnection()

This will return the current database connection that is the same for the currently running thread (using a ThreadLocale object).

Regards,
 Serge Huebr.

Regards,

Ryan

-----Original Message-----
From: Serge Huber [mailto:[EMAIL PROTECTED]
Sent: 21 October 2004 14:19
To: [EMAIL PROTECTED]
Subject: Re: Viewing User Statistics



Hi Ryan,

You could achieve something like this by implementing an event listener that you register in the tomcat/webapps/jahia/WEB-INF/etc/config/listeners.registry class, and that would gather statistics by intercepting the login and logoff events.

You can find the Javadoc for the event listener class here :

http://www.jahia.org/javadoc-dev/org/jahia/data/events/JahiaEventListener.ht
ml

Regards,
 Serge Huber.

Ryan Moreton wrote:



Hi,

I'm trying to calculate which users have logged into the system and when,
but the audit log only contains information regarding changes made to a
page. Is it possible to get it to report on all access to the site once a
user has logged in and get this information stored in the database so I
can graph it using another tool?

Regards,

Ryan















Reply via email to