Take log for the length prior.