Whether it is necessary to confess to a priest?

Objections

Objection 1 : It would seem that it is not necessary to confess to a priest. For we are not bound to confession, except in virtue of its Divine institution. Now its Divine institution is made known to us (James 5:16): "Confess your sins, one to another," where there is no mention of a priest. Therefore it is not necessary to confess to a priest.
Objection 2 : Further, Penance is a necessary sacrament, as is also Baptism. But any man is the minister of Baptism, on account of its necessity. Therefore any man is the minister of Penance. Now confession should be made to the minister of Penance. Therefore it suffices to confess to anyone.
Objection 3 : Further, confession is necessary in order that the measure of satisfaction should be imposed on the penitent. Now, sometimes another than a priest might be more discreet than many priests are in imposing the measure of satisfaction on the penitent. Therefore it is not necessary to confess to a priest.
Objection 4 : Further, confession was instituted in the Church in order that the rectors might know their sheep by sight. But sometimes a rector or prelate is not a priest. Therefore confession should not always be made to a priest.