using -log/-l parameter to specify log file to write.

Change-Id: I710c146ac1a11945f600e2d10d50242ddfe98931