fmt in parent, and log in child