fix logging stdout to a file

Change-Id: I624c0dd9fbc0a5e660fe07676079e9838fb78423