class_docstr: Logs the results of an attack to a file, or `stdout`.
class_docstr_tok: ["Logs","the","results","of","an","attack","to","a","file",",","or","`","stdout","`","."]
code: def log_summary_rows(self, rows, title, window_id):
      if self.stdout:
          table_rows = [[title, ""]] + rows
          table = terminaltables.AsciiTable(table_rows)
          self.fout.write(table.table)
      else:
          for row in rows:
              self.fout.write(f"{row[0]} {row[1]}\n")
  
file_path: TextAttack/textattack/loggers/file_logger.py
imports: import os
  import sys
  import terminaltables
  from textattack.shared import logger
  from .logger import Logger
label_desc: Use image node_id 5 for calling the FileLogger obj's underlying member method code with example usage: obj.log_summary_rows(rows, title, window_id) without return types