Add the possibility to set an optional log file for debugging.