How far back do mortgage lenders look?

how far back in your credit report do morgage lenders look? can they see the details of the loans your paying off? or do they just get to see if your making your payments on time?
How far back do mortgage lenders look?
Post Opinion