Connection and logging configuration