[SPARK-3562]Periodic cleanup event logs

link #2391 
nit: comment format. (please run the scalastyle target on your code)