when directory is not there, this will panic. .SetKeepLogs --> .delPrevLogs
when directory is not there, this will panic.
.SetKeepLogs --> .delPrevLogs