Logarithmic electroweak corrections to gauge-boson pair production at the LHC