make logger getting/setting thread-safe