[SPARK-3562]Periodic cleanup event logs

link #2391 
You should use a thread factory so that you can set the thread name and daemon status. See com.google.common.util.concurrent.ThreadFactoryBuilder.