added new logging as in http://docs.moodle.org/dev/Migrating_logging_calls_in_plugins (in progress)