making basic logging to file thread safe
Merge remote-tracking branch 'alex/master'