code: def to_string(self, metadata=False):
          
          return "\n".join(rec.get_message(metadata=metadata) for rec in self)
docs: Returns  a string with the history. Set metadata to True to have info on function and module.