code: def _write_to_log(self, output):
          
          with open(self.log_file, 'a') as log_file:
              log_file.write('\n')
              log_file.write(output)
              log_file.write('\n')
docs: Write the output string to the log file.