Statistical Mechanics Of Log And Riesz Interactions