Merge "base: support logging before enter main function." am: a59c7bcc48 am: 14e66c5989 am: 84ef8c8817
am: 2edecfd466

Change-Id: I0db8dfe054b73195c1a0b6623b0477e270397da6