issue #95 make logger thread safe