Currently the synchronization scripts for auth and enrol (specifically, looking ext. database), log errors in a very inconsistent manner. I'm trying to integrate Moodle with an identity services backend that needs to be notified about successful and failed account ids. The current output format of the sync. scripts makes it difficult to parse the output and send it back to the XML-RPC server.
I'd like to propose the following:
1. that sync. scripts output messages in the following format (or an alternative, but consistent one).
I'm illustrating the format using a perl-compatible regex.:
where ID is the moodle account id number, and DESCRIPTION is the plaintext message
2. that error messages are sent to STDERR and other messages are sent to STDOUT, for ease of capturing.
I'm happy to update the auth and enrol plugins that I'm currently working with, and provide a patch. I'll now go ahead and update our custom enrolment plugin to do the same.