General plugins (Local): Syslogger

Maintained by Picture of Bart BusschotsBart Busschots
Duplicates Moodle logs to syslog using the Linux logger command.

Syslogger 0.1.0

Release notes


A Moodle plugin to duplicate Moodle log entries to Syslog using the Linux
`logger` command. Because this plugin shells out to the `logger` command, it
obvioulsy only works on systems where the `logger` command is available.

This is a local plugin, so should be installed to `[moodle_base]/local/syslogger`.

Once installed you must explicitly enable the plugin by visiting
`Site Administration -> Plugins -> Local plugins -> Syslogger` and checking the
`Enabled` checkbox. You should also check that the path to `logger` is correct,
and that you are happy with the priority and syslog tag that the plugin will use
when forwarding log messages to syslog.

The plugin does not forward log messages in real-time, but instead uses Moodle's
cron functionality to send all new log messages since the previous execution of
cron at once. The plugin will not execute unless it has been at least 3 minutes
since the last time it executed.

When the plugin runs for the first time it will try send all log messages in the
database. If you are installing this plugin into a fresh Moodle instance this
will not be a problem, but it might be an issue if you are installing the plugin
into an existing Moodle instance. To prevent this from happening you can
manually add an entry into the `log_plugins` table with the following values
(replacing `[UTS_TIME_STAMP]` with the Unix Time Stamp for the earliest time
you want logs sent from, probably the current Unix Time Stamp):


This plugin has only been tested on Moodle 2.4, but the API calls used etc.
should work with all versions of Moodle 2.*.
Moodle 2.2, 2.3, 2.4, 2.5

Version information

Version build number
Version release name
Stable version
MD5 Sum
Supported software
Moodle 2.2, Moodle 2.3, Moodle 2.4, Moodle 2.5
  • This is the latest release for Moodle 2.2
  • This is the latest release for Moodle 2.3
  • This is the latest release for Moodle 2.4
  • This is the latest release for Moodle 2.5

Version control information

Version control system (VCS)
VCS repository URL

Default installation instructions for plugins of the type General plugins (Local)

  1. Make sure you have all the required versions.
  2. Download and unpack the module.
  3. Place the folder in the "local" subdirectory.
  4. Visit to finish the installation.