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:
75 sites
17 downloads
8 fans
Current versions available: 2

xAPI is the leading open standard to leverage your learning data and build learning analytics.

As Moodle is not xAPI-compliant, you need a plugin to transform Moodle data into xAPI data,
and Trax Logs aims to be the best plugin for this job, bringing some key benefits:

  • Synchronous & asynchronous communication with the LRS (real-time vs CRON job),
  • Automated history transfer from Moodle logs,
  • Reliability: communication errors and retry management,
  • Configurable list of events to be processed by the plugin,
  • Support of the main Moodle events,
  • Support of xAPI video activities,
  • Support of H5P activities,
  • Support of LTI activities,
  • Statements designed with best practices in mind,
  • Reinforcement of data privacy,
  • Simple and extensible architecture,
  • Code quality and unit testing,
  • Extensive plugin documentation,
  • Extensive xAPI documentation.

Screenshots

Screenshot #0

Contributors

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

Comments RSS

Comments

  • Plugins bot
    Wed, 20 Jun 2018, 11:40 PM
    Approval issue created: CONTRIB-7343
  • Benjamin Cabassot
    Wed, 12 Feb 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 !
    Regards
  • Sébastien FRAYSSE
    Mon, 17 Feb 2020, 7:22 PM
    Hi,

    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.

    Sébastien
  • Jack Eapen
    Mon, 9 Mar 2020, 6:47 PM
    Hi
    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
  • Sébastien FRAYSSE
    Tue, 10 Mar 2020, 4:03 AM
    Hi,
    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?
    Thanks
  • Jack Eapen
    Tue, 10 Mar 2020, 10:05 PM
    Hi,

    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

  • Sébastien FRAYSSE
    Tue, 10 Mar 2020, 10:44 PM
    Hi,

    Regarding the endpoint, the doc also says: "you should configure your web server's document / web root to be the public directory." (https://github.com/trax-project/trax-lrs#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.

    Thanks
  • Jack Eapen
    Sun, 12 Apr 2020, 9:51 PM
    Hi,

    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?
  • Sébastien FRAYSSE
    Mon, 13 Apr 2020, 3:54 PM
    Hi,

    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:
    - https://github.com/trax-project/trax-lrs
    - https://github.com/trax-project/moodle-trax-logs/blob/master/doc/install.md
    - https://github.com/trax-project/moodle-trax-logs/blob/master/doc/config.md
  • Tien Nguyen
    Wed, 28 Sep 2022, 9:41 AM
    Hi Sebastien, will this awesome plugin work with moodle 4.0?
  • Sébastien FRAYSSE
    Mon, 3 Oct 2022, 4:51 PM
    Hi Tien.
    It will, but I don't know when.
    I hope to make the update during the 1st semester of 2023.
  • Arvind Thasal
    Mon, 17 Oct 2022, 11:17 PM
    Hi,
    Me getting below error after starting Tincan course.Could you please help
    The Learning Record Store is not available. Please contact a system administrator. If you are the system administrator, go to Site admin / Development / Debugging and set Debug messages to DEVELOPER. Set it back to NONE or MINIMAL once the error details have been recorded.
    Error attempting to get registration data from State API.

    object(TinCan\LRSResponse)#77 (3) {
    ["success"]=> bool(false)
    ["content"]=> string(27) "Invalid "activityId" param."
    ["httpResponse"]=> array(4) {
    ["status"]=> int(400)
    ["headers"]=> array(4) {
    ["contentType"]=> string(9) "text/html"
    ["date"]=> string(29) "Mon, 17 Oct 2022 15:15:07 GMT"
    ["apiVersion"]=> string(5) "1.0.3"
    ["contentTypeCharset"]=> string(5) "UTF-8"
    }
    ["_content"]=> string(27) "Invalid "activityId" param."
  • Sébastien FRAYSSE
    Tue, 18 Oct 2022, 1:22 AM
    Hi Arvind,
    This message has nothing to do with TRAX Logs plugin.
    If you are using the xAPI Launch Link plugin, please refer to the related documentation.
Please login to post comments