Fixed logWriter event not firing