[SPARK-3562]Periodic cleanup event logs

link #2391 
nit: the comment is very cryptic.

Try something like: "Delete event logs from the log directory according to the clean policy defined by the user."