In the UK you can only do this (on a single pilot certified plane) if one of you has an instructor rating and the other of you is his "student".
Otherwise only one of you can log the flight time.
I would presume that it's the same in your country but I don't actually know.