Fix log7 build error; log7 logging to file issue