log files to new directories