implemented deleteOldLogFiles()