Generate log file in output dir