There's a LogEvent function in the MsgPlus object for the scripting engine.
IMO, Patchou should try (because maybe he can't prevent it) not to log the events generated by scripts, and let them use this function.
That way, the script could have the option to log or not whatever "loggable" events it generates.
Coders would be responsible of this feature.
Disable logging and things like that are really bad ideas.
Especially if it's done by the script itself.