One-loop electroweak Sudakov logarithms: a revisitation and automation