Added option to enable/disable logging process outputs to a file.