Make event logging configurable at runtime