Added API to LogEvent