Add logging config option

closes #2103
- Deactivate logging for testing environments
- Override logging with settings from config
Merge pull request #2173 from halfdan/2103-connect-logging

Add logging config option