add_to_log calls converted to moodle 2.7 log events