Add logging config option

closes #2103
- Deactivate logging for testing environments
- Override logging with settings from config