Council of Trent, Session XIV, Chapter V, 15 November 1551, On Confession.
From the institution of the sacrament of Penance as already explained, the universal Church has always understood, that the entire confession of sins was also instituted by the Lord, and is of divine right necessary for all who have fallen after baptism; because that our Lord Jesus Christ, when about to ascend from earth to heaven, left priests His own vicars, as presidents and judges, unto whom all the mortal crimes, into which the faithful of Christ may have fallen, should be carried, in order that, in accordance with the power of the keys, they may pronounce the sentence of forgiveness or retention of sins. For it is manifest, that priests could not have exercised this judgment without knowledge of the cause; neither indeed could they have observed equity in enjoining punishments, if the said faithful should have declared their sins in general only, and not rather specifically, and one by one. Whence it is gathered that all the mortal sins, of which, after a diligent examination of themselves, they are conscious, must needs be by penitents enumerated in confession, even though those sins be most hidden, and committed only against the two last precepts of the decalogue, – sins which sometimes wound the soul more grievously, and are more dangerous, than those which are committed outwardly. For venial sins, whereby we are not excluded from the grace of God, and into which we fall more frequently, although they be rightly and profitably, and without any presumption declared in confession, as the custom of pious persons demonstrates, yet may they be omitted without guilt, and be expiated by many other remedies.
… for it is certain, that in the Church nothing else is required of penitents, but that, after each has examined himself diligently, and searched all the folds and recesses of his conscience, he confess those sins by which he shall remember that he has mortally offended his Lord and God: whilst the other sins, which do not occur to him after diligent thought, are understood to be included as a whole in that same confession; for which sins we confidently say with the prophet; From my secret sins cleanse me, O Lord. Now, the very difficulty of a confession like this, and the shame of making known one’s sins, might indeed seem a grievous thing, were it not alleviated by the so many and so great advantages and consolations, which are most assuredly bestowed by absolution upon all who worthily approach to this sacrament.