add logger for connection