Fix bug writing log files
Allow config file overriding of message repository