write to  log file when create a log entry when a bug is hit