Add config parameter for event logging sampling rate.

Change-Id: I3b9a7c9cb60d93516af4710cb98314c5b96fecc9