Scaling theory and logarithmic singularities