[TIMOB-12169] Create build log with compilation
address comments on PR
move code to build.js per comments
remove logger event, remove comment
moved call to patchLogger to catch msgs from hooks, updated log file name declaration
remove unnecessary returns
Add sprintf, update package.json, require module in build.js
delete build_log when cleaning a specific platform
Merge pull request #6297 from skypanther/TIMOB12169

[TIMOB-12169] Create build log with compilation