Article 231 of the French Code of civil procedure
The judge may, at the hearing or in his chambers, as well as in any place where an investigative measure is being carried out, hear on the spot any persons whose testimony he deems useful for ascertaining the truth.