add logging to a log file named like the configfile