Abstract: We study the asymptotic behavior of ground state solutions of nonlinear scalar field equations with power non linearity, and derive a convergence result in the vanishing case with the power tending to the borderline case. As a consequence, our result gives a direct proof of the logarithmic Sobolev inequality.