Source code for textattack.loggers.logger

"""
Attack Logger Wrapper
========================
"""


from abc import ABC


[docs]class Logger(ABC): """An abstract class for different methods of logging attack results.""" def __init__(self): pass
[docs] def log_attack_result(self, result, examples_completed=None): pass
[docs] def log_summary_rows(self, rows, title, window_id): pass
[docs] def log_hist(self, arr, numbins, title, window_id): pass
[docs] def log_sep(self): pass
[docs] def flush(self): pass
[docs] def close(self): pass