improved logging using a logfile config parameter that creates a new logfile