Microscopic description of log and Coulomb gases