Context : Despite the low cosmic abundance of deuterium (D/H ~ 1e-5), large degrees of deuterium fractionation in molecules are observed in star forming regions with enhancements that can reach 13 orders of magnitude, which current models have difficulties to account for. Aims : Multi-isotopologue observations are a very powerful constraint for chemical models. The aim of our observations is to understand the processes forming the observed large abundances of methanol and formaldehyde in low-mass protostellar envelopes (gas-phase processes ? chemistry on the grain surfaces ?) and better constrain the chemical models. Methods : Using the IRAM 30m single-dish telescope, we observed deuterated formaldehyde (HDCO and D2CO) and methanol (CH2DOH, CH3OD, and CHD2OH) towards a sample of seven low-mass class 0 protostars. Using population diagrams, we then derive the fractionation ratios of these species (abundance ratio between the deuterated molecule and its main isotopologue) and compare them to the predictions of grain chemistry models. Results : These protostars show a similar level of deuteration as in IRAS16293-2422, where doubly-deuterated methanol -- and even triply-deuterated methanol -- were first detected. Our observations point to the formation of methanol on the grain surfaces, while formaldehyde formation cannot be fully pined down. While none of the scenarii can be excluded (gas-phase or grain chemistry formation), they both seem to require abstraction reactions to reproduce the observed fractionations.