add var to control  log output