Syslogger

General plugins (Local) ::: local_syslogger
Maintained by Bart Busschots
Duplicates Moodle logs to syslog using the Linux logger command.
Latest release:
4 sites
Current versions available: 1

This local plugin uses cron to duplicate log entries in the Moodle log database table to syslog with the Linux logger command.

This plugin was developed by the Computer Centre in the National University of Ireland Maynooth.

Contributors

Bart Busschots (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Anthony Borrow
    Wed, 11 Sept 2013, 5:00 AM
    Bart - Many thanks for sharing this plugin with the Moodle community. You may be interested in some of the work being done to improve logging and perhaps participate in the Moodle Tracker with suggestions, patches, etc. You can get started by reading http://docs.moodle.org/dev/Logging_2 if you are not already familiar with what is going on.

    I encourage folks to provide not only the source control URL which you have done but also the tracker and documentation URLs. For those using Github.com, I recommend trying to follow the Moodle naming convention for repositories - in your case it would be moodle-local_syslogger. It is a small detail (and not required) but it helps those using plugins to have a consistent experience especially if they are managing their sites using Git. Would you consider renaming the repository?

    I'm going to mark this as needing more work while you consider the repository rename (better to get that set before making it public). Otherwise it installs fine and seems to work well.

    Please do not hesitate to let me know if there is anything I can do to be supportive of your efforts. Peace - Anthony
  • Bart Busschots
    Thu, 12 Sept 2013, 10:11 PM
    Thanks Anthony, I've re-named the repo as requested.

    I'll have a read of the on-going logging discussion, and comment if I have anything useful to contribute to the discussion.

    Regards,

    Bart.
  • Anthony Borrow
    Fri, 13 Sept 2013, 8:43 AM
    Bart - Thanks for updating the repository name. I went ahead and created a link for the tracker using Github. It would help if you were able to create a page for documentation. You are welcome to use either Github's wiki or Moodle Docs. I have some suggestions about doing so at http://docs.moodle.org/en/Development:Guidelines_for_contributed_code. If you have any questions just let me know. I'm going to go ahead and approve this plugin. Peace - Anthony
  • Anthony Borrow
    Fri, 13 Sept 2013, 8:46 AM
    Ooops, looks like there was an issue with lang/en/local_syslogger.php - Error: AMOS threw exception mlang_parser_exception: Error: Expected T_CONSTANT_ENCAPSED_STRING array item value at line 27

    If you could patch that up I would appreciate it. Peace - Anthony
  • Bart Busschots
    Fri, 13 Sept 2013, 5:33 PM
    Hi Anthony,

    I wasn't able to reproduce the error you reported, but I've changed the line in question from:

    $string['pluginname'] = $string['syslogger'];

    to

    $string['pluginname'] = 'Syslogger';

    I've uploaded a new version, and also created a wiki page on GitHub and added the link to the plugin.

    I think that should be everything fixed?

    Regards,

    Bart.
  • Anthony Borrow
    Sat, 14 Sept 2013, 1:39 AM
    Bart - Thanks for updating the language file. The error I mentioned was generated by AMOS which is used for creating language packs (see lang.moodle.org to learn more about that). I'll go ahead and approve the new version and all should be in good shape now. Thanks again for your patience with this process. Peace - Anthony
  • Christian Winning
    Fri, 4 Jan 2019, 5:29 PM
    Hi folks,

    I recently installed the syslogger plugin and did the above mentioned steps, enabling the plugin, checking the other informations but except enabling the plugin I left everything on default.

    Using CentOS 7 I then configured /etc/rsyslog.conf and added

    # Save moodle Messages to moodle.log
    local1.* /var/log/moodle.log

    Moodle Cron Job is running every 15minutes but so far nothing was written into the moodle.log.

    Using Moodle 3.5.x and latest Syslogger Plugin.

    What am I missing?
Please login to post comments