Encode language in build log file

Add language to filename of build log file to be able to easier
distinguish log files.
Add missing write instructions to log the complete information.

Change-Id: I0f26029b087306b45ea9ebc6c4623651ee2bb236
Merge "Encode language in build log file"