Diffusion on compact Riemannian manifolds and logarithmic Sobolev inequalities