Fast spectral galerkin method for logarithmic singular equations on a segment