Refactored logging connection provider