Update function startProcess()

Add method for log file