A log file should be automatically created and named after the output file. Also, a debug file should be created on default that contains what goes now to the console. The debug file could be overwritten with each program run.