Added a new option in the config file to specify a log file.
If present, the output will print only errors or warnings