Refactored logging in MOngoDatabaseProvider