Moodle
  1. Moodle
  2. MDL-28442

New event when a file was viewed by user (for optional logging)

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.9.12, 2.1
    • Fix Version/s: BACKEND
    • Component/s: Files API
    • Labels:
    • Workaround:
      Hide

      add a add_to_log function to /file.php manually (around the end of the file)

      Show
      add a add_to_log function to /file.php manually (around the end of the file)
    • Affected Branches:
      MOODLE_19_STABLE, MOODLE_21_STABLE
    • Epic Link:
    • Rank:
      97

      Description

      Recently, i tried to get a log report of students viewing some files (they were not supposed to) and i found out that there is no logging of such activity. (In Moodle 1.9.x and Moodle 2.x)

      I suggest adding a log entry function to /file.php for both Moodle versions

      maybe:
      add_to_log($course->id, 'file', 'view', "/file.php/$course->id/$file", "$course->id");
      (not sure if the above syntax is good for both Moodle 1.9 and 2.x)

        Activity

        Nadav Kavalerchik created issue -
        Petr Škoda made changes -
        Field Original Value New Value
        Parent MDL-28443 [ 46008 ]
        Issue Type Improvement [ 4 ] Sub-task [ 5 ]
        Michael de Raadt made changes -
        Summary missing log entry for user viewing a file Use separate thread for logging
        Fix Version/s DEV backlog [ 10464 ]
        Labels triaged
        Michael de Raadt made changes -
        Parent MDL-28443 [ 46008 ]
        Rank (Obsolete) 168100000000
        Issue Type Sub-task [ 5 ] Improvement [ 4 ]
        Michael de Raadt made changes -
        Epic Link MDL-37658 [ 63606 ]
        Michael de Raadt made changes -
        Fix Version/s BACKEND [ 12582 ]
        Fix Version/s DEV backlog [ 10464 ]
        Marina Glancy made changes -
        Summary Use separate thread for logging New event when a file was viewed by user (for optional logging)
        Marina Glancy made changes -
        Epic Link MDL-37658 [ 63606 ] MDL-39952 [ 67071 ]
        Michael de Raadt made changes -
        Rank Ranked higher
        moodle.com made changes -
        Epic Link MDL-39952 [ 67071 ] MDL-28443 [ 46008 ]
        moodle.com made changes -
        Rank Ranked lower

          People

          • Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated: