Add sync to protect Logger when writing from multiple goroutines