  We prove a formula of log canonical models for moduli space $\bar{M}_{g,n}$
of pointed stable curves which describes all Hassett's moduli spaces of
weighted pointed stable curves in a single equation. This is a generalization
of the preceding result for genus zero to all genera.
