allow setting logDirs, clean up logfiles