Use EventLogging::logEvent instead of deprecated version

Change-Id: Ia973107a5797c0ff9b2233166f0ef4f8593ceaff