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 __getstate__(self):
      # Temporarily save file handle b/c we can't copy it
      state = {
          i: self.__dict__[i] for i in self.__dict__ if i != "fout"
      }
      return state
  
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 2 for calling the FileLogger obj's underlying member method code with example usage: obj.__getstate__() and returns: state