[SPARK-3562]Periodic cleanup event logs

link #2391 
(Bonus for printing a warning log if the old setting is used.)