[logging] added thread safety macro;
Merge branch 'feature/logging' into feature/gcc4.7-support