log connection.