Fix build failure in EventLogger class.

Target: trunk
Request: 2.7
Require-notes: no
Require-book: no
Patch: none
(cherry picked from commit 59440b0640effcf3fb4624f30c028be47d25a473)