Logarithmic moduli of roots of line bundles on curves