Trax Logs

Log storage ::: logstore_trax
Maintained by Sébastien FRAYSSE
This plugin transforms Moodle logs into xAPI statements, and sends then to your LRS.
Latest release:
56 sites
5 fans
Current versions available: 1

Trax Logs for Moodle is a completely new plugin which transforms Moodle logs into xAPI statements, and sends then to your LRS.

It aims to bring some key improvements in this field:
  • Statements design following best practices,
  • Reinforcement of data privacy,
  • Simple and extensible architecture.
The current version of the plugin supports general navigation events:
  • Login and logout,
  • Course access,
  • Course module access: all standard modules supported, except Assignement.
The number of supported events will increase during the next months, including:
  • Progress, completion, success and competency development,
  • Specific interactions for each type of course module.
You are encouraged to install the plugin, to test it, and to share feedbacks.


Screenshot #0


Sébastien FRAYSSE (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Wed, Jun 20, 2018, 11:40 PM
    Approval issue created: CONTRIB-7343
  • Wed, Feb 12, 2020, 8:15 PM
    Hi !
    I would like to know more or less when a beta or mature version of the plugin, would be available ?
    Thanks for the work !
  • Mon, Feb 17, 2020, 7:22 PM

    A lot have been done since the first release of the plugin here and the Moodle repo has not been updated.
    If you want to get the last version, please, go to the github page of the project, or on its website.

    The plugin is not considered stable because the format of the statements is still subject to change.
    I can't give you a date for a stable version. I hope before the end of 2020.

    However, technically speaking, the plugin is working so you can test it and share your feedbacks.
    Any opinion of the format of the statements is also welcome.

    Many thanks for your interest.

  • Mon, Mar 9, 2020, 6:47 PM
    it would be great if some clear instructions on how to use this plugin. I installed Trax LRS and this plugin. Getting the endpoint URL itself correctly was a pain, as the URL given in the documentations is wrong. Got it right after some web search. Now the plugin is installed. I ran the scheduled jobs from command line (Windows-test system). there are entries in mdl_logstore_trax_logs table. but how to populate data in the LRS database tables? The statements section of my LRS is not showing any statements. what has to be done for that? please help
  • Tue, Mar 10, 2020, 4:03 AM
    Could you explain what goes wrong with the endpoint URL please?
    Then, could you look at the error column of the mdl_logstore_trax_logs table and tell me what you see?
  • Tue, Mar 10, 2020, 10:05 PM

    the site and documentation says, the endpoint URL is http://trax.test/trax/ws/xapi whereas the correct URL is http://trax.test/public/trax/ws/xapi.

    My end point is working fine. i.e. if I point my browser to http://localhost/traxlrs/public/trax/ws/xapi/about I'm getting a JSON message.

    In the error column of mdl_logstore_trax_logs table, values are 1 and 4

  • Tue, Mar 10, 2020, 10:44 PM

    Regarding the endpoint, the doc also says: "you should configure your web server's document / web root to be the public directory." (
    So the "public" segment should not be in your URL if you follow the guidelines. Anyway, this is a Trax LRS topic, not a Moodle plugin issue.

    The error column indicates that you have an LRS connectivity issue (error 1).
    Please, test the LRS access by calling the statements API with a client such as Postman.
    Make a simple GET statements for example to check that everything is OK with your Basic HTTP credentials.

  • Sun, Apr 12, 2020, 9:51 PM

    COuld you please give some more explanation with how these things work? I have logstore_trax in my Moodle, Trax-LRS installed, Trax-sync plugin installed with Trax LRS. Do I need all these?

    When I run the scheduled task for logstore_trax, moodle tables are populated. How the trax LRS tables are populated?
  • Mon, Apr 13, 2020, 3:54 PM

    1. You don't need Trax Sync to make Trax LRS work with Moodle. Trax Sync is a plugin to send statements to an Elastic Search database.

    2. When you run the scheduled task, Trax Logs tries to convert Moodle standard logs into xAPI statements and send them to the LRS. The result is logged in the trax_logs table. Once again, check the error column. The value "1" indicates that there is a issue with the LRS connection. SO check the Basic HTTP credentials in Trax Logs and Trax LRS. Then test your LRS with an API client to be sure your LRS is up and running. Finally, test with Moodle in sync mode (the Statements will be sent directly if everything is fine), and finally in async mode (and check the error table).

    And please, check the documentation:
Please login to post comments