Merge "base: support logging before enter main function."
am: a59c7bcc48

Change-Id: Icbb97c807bee8cc7394260dcb612f88855241fea