def log_file(self, url=None):
if url is None:<EOL><INDENT>url = self.url<EOL><DEDENT>f = re.sub("<STR_LIT>", "<STR_LIT>", url)<EOL>try:<EOL><INDENT>with open(f, "<STR_LIT:a>") as of:<EOL><INDENT>of.write(str(self.store.get_json_tuples(True)))<EOL><DEDENT><DEDENT>except IOError as e:<EOL><INDENT>print(e)<EOL>print("<STR_LIT>")<EOL><DEDENT>
Write to a local log file