[bugfixes] fixed deadlocks for debug and default log levels
[untracked] added library-level logs
[untracked] resetting data meters on thread switch