class_docstr: Logs attack results to Visdom.
class_docstr_tok: ["Logs","attack","results","to","Visdom","."]
code: def log_attack_result(self, result):
      text_a, text_b = result.diff_color(color_method="html")
      result_str = result.goal_function_result_str(color_method="html")
      self.sample_rows.append([result_str, text_a, text_b])
  
file_path: TextAttack/textattack/loggers/visdom_logger.py
imports: import socket
  from textattack.shared.utils import LazyLoader, html_table_from_rows
  from .logger import Logger
label_desc: Use image node_id 4 for calling the VisdomLogger obj's underlying member method code with example usage: obj.log_attack_result(result) without return types