Logarithmic term in the density expansion of quantum transport coefficients and other response functions