track log for windows
fix compile error on windows
using suitable variable name
Merge pull request #9619 from yinjimmy/trackLogForWindows

Track log for windows