Migrated chart_logins part to new Moodle 2.7 logging.
Added backwards compatibility to Moodle 2.6 logging structures.