create log files in 2 stages