Thread local you say... now it makes sense. But still it's somehow... how should I say it?.. not clean enough? May be it's better to introduce API inside eblob to set log-level on per-thread basis which will take precedence over global log level so that elliptics can use that API?
Though I'm not sure how real it is to implement this without breaking the API.