Details
-
Type:
New Feature
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.9
-
Fix Version/s: 2.0
-
Component/s: Administration
-
Labels:None
-
Affected Branches:MOODLE_19_STABLE
-
Fixed Branches:MOODLE_20_STABLE
Description
Proposed modification allows for actions and site changes in the admin section to be logged. This is very helpful in tracking down configuration problems, especially in the environment with several independent admins.
All entries are in the format "setting_name: 'old value' => 'new value'", and can be seen in log reports at /admin/report/log/index.php.
Patches contained in the attached file cover site settings saved in mdl_config, mdl_config_plugins, mdl_backup_config and the site course record (mdl_course where id=SITEID). It can be expanded to cover changes in roles and other settings. Patches were developed on 1.8.2.
Important: add $CFG->admin_log_enabled=true; to config.php to enable the feature.
It is preferred to keep the flag in config.php, as opposed to an option in the /admin GUI, to prevent admins from disabling it, wreaking havoc on the system, and re-enabling it again. All in a good cause, of course.
Particularly useful in hosted environments for trouble shooting, providing a way to clearly indicate that the problem is not a bug or failure of Moodle, but user(admin) error. Without the log record to point to it can degenerate into a game of blaming the software for the confused actions of multiple admins.
Andy Braden
Moodlerooms