Select Moodle version:

General plugins (Local): Syslogger

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

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

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

Comments RSS

Show comments
  • Capt. Moodle
    Wed, Sep 11, 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
  • Picture of Bart Busschots
    Thu, Sep 12, 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.
  • Capt. Moodle
    Fri, Sep 13, 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
  • Capt. Moodle
    Fri, Sep 13, 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
  • Picture of Bart Busschots
    Fri, Sep 13, 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.
  • Capt. Moodle
    Sat, Sep 14, 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
Please login to post comments