spinlock in logger