Add event commands to CompatLogger.

Fixes #4362