create output log file if required