The Ordinary must start a judicial or an administrative procedure for the imposition or the declaration of penalties when he perceives that neither by the methods of pastoral care, especially fraternal correction, nor by a warning or correction, can justice be sufficiently restored, the offender reformed, and the scandal repaired.
Source: Code of Canon Law (Vatican.va)