Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-5469

Port logging feature from MR latest version (4.13 (2014070901))

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • Minor
    • 2.8.10, 2.9.4
    • 2.8.1
    • Block: Mhaairs
    • None
    • MOODLE_28_STABLE
    • MOODLE_28_STABLE, MOODLE_29_STABLE

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              itamart Itamar Tzadok
              itamart Itamar Tzadok
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Clockify

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.