-
Task
-
Resolution: Fixed
-
Minor
-
2.8.1
-
None
-
MOODLE_28_STABLE
-
MOODLE_28_STABLE, MOODLE_29_STABLE
In version 4.13 (2014070901) MR added a simple logging feature for debugging purposes. The logging capability needs to be ported into the new plugin version.
MR Feature description
To enable logging visit the global settings page of mhaairs block and enable "Grade exchange log" option.
Log files are stored in moodledata directory [moodledata]/mhaairs.
Every individual web service request generates separate log file with filename format
mhaairs_year-month-day_hour-min-sec_randomkey.log
If mhaairs directory is not present in moodledata it will be created by plugin.To cleanup log information after debugging is finished visit again global settings page of mhaairs block and disable "Grade exchange log" option and check "Reset grade exchange log". Save changes. This will disable logging and purge mhaairs directory with all the content in it.
Changes to MR feature
- The logger class will be moved into block_mhaairs_util and renamed to MHLog.
- Enable/Disable remains the same via the plugin config settings.
- Reset logs will be removed from the config settings.
- An administration page to view and reset logs will be added. Access to the page will be done via nav link in the plugin administration nav.
- Unit and acceptance tests will be added.
Further consideration
- The plugin logging should be refactored to use Moodle new log store.
- Currently the update_grade webservice returns only OK|FAILED status as response. It may be worthwhile to return a more detailed response with details on the return status, especially when FAILED.
- has been marked as being related by
-
CONTRIB-5494 Add administration links to gradelogs and testclient.
- Closed