Save log file in appropriate folder