Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-63490

Add device type to system event log

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.5
    • Fix Version/s: None
    • Component/s: Events API
    • Labels:
      None
    • Affected Branches:
      MOODLE_35_STABLE

      Description

      To improve statistics functionality, I suggest add device type information to the base class of log events. which will allow more functionality when creating custom statistic reports based on SQL (mdl_logstore_standard_log)

      Of course, we can also add a system setting that enable/disable it, if it feels like too much for the system admin. (privacy or inflate the log)

      Suggestion:

      After line (lib/classes/event/base.php L205):

      $event->data['other'] = isset($data['other']) ? $data['other'] : null;

       Add:

      $event->data['other']['devicetype'] = \core_useragent::get_device_type();

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              nadavkav Nadav Kavalerchik
              Participants:
              Component watchers:
              Jake Dallimore, Jun Pataleta
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: