Logging
Logging interactions
When users interact with Moodle, many of their interactions are logged using the Events subsystem. This subsystem includes a powerful, and granular, logging mechanism which allows the collection of relevant information.
The Moodle core logs common interactions, and most activities also include granular logging of student progress through the activity.
Examples of log entries include:
- logging in or out
- accessing a course
- updating a course
- viewing an activity within a course
- viewing a forum discussion
- creating a new forum discussion
- replying to an existing post in a forum discussion
- completing an activity
Log stores
You can enable log stores in Site administration > Plugins > Logging > Manage log stores.
There are two log stores available:
- Standard
- External database
The default Standard log is very detailed and should meet most requirements.
The "Write buffer size" is the number of log entries inserted in one batch database operation, which improves performance.
From Site administration > Plugins > Reports > Manage reports, the administrator can see which log stores support which given report:
External log store
An External database log store also allows you to connect to an external log database. This uses the same logging format as the Standard log store, but allows you to send logs to a different database. It can still be queried from within the Moodle User Interface, and is sometimes preferable on busy sites where many logs are created.
Analytics
Moodle also has a powerful Analytics engine, which uses Machine Learning to predict and warn of potential student outcomes. Many of these predictions are based upon the logs that are generated and stored by Moodle.
Please note that some Log Store plugins are write-only and cannot be used for this purpose. Both the Standard logstore, and the External logstore included with Moodle are compatible with the Moodle Analytics features.