API logs of user activity

API logs of user activity

by kevin parra -
Number of replies: 6

Hi everyone

Is there a way to access to the logs (user activity like session time and so on) of moodle through an API? and where is the documentation or the plugin for that?

Average of ratings: -
In reply to kevin parra

Re: API logs of user activity

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
It depends what you are trying to do - more detail would help.

There's no webservice call to access the logs. However, it's just a database table. If you're extending Moodle then it's easy enough to write a plugin that reads that table.

Oh... "like session time" is one thing you're going to have fun getting from the logs. The logs contain "events" - when users did something.
Average of ratings: Useful (1)
In reply to Howard Miller

Re: API logs of user activity

by kevin parra -
I am trying to access logs in such database, but I don't want, neither know how to implement that plugin, maybe there is an existing plugins that expose a API web service for retrieve logs from database in json format or something similar?
In reply to kevin parra

Re: API logs of user activity

by Bruno Corrêa Feil -

Hey!

Did you find a way?

In reply to Bruno Corrêa Feil

Re: API logs of user activity

by Marcus Green -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
I am not sure I understand the question (see Howards response)