(self, query: str)
| 70 | prompt_toolkit.print_formatted_text(styled_timing, style=self.ptoolkit_style) |
| 71 | |
| 72 | def log_query(self, query: str) -> None: |
| 73 | if isinstance(self.logfile, TextIOWrapper): |
| 74 | self.logfile.write(f"\n# {datetime.now()}\n") |
| 75 | self.logfile.write(query) |
| 76 | self.logfile.write("\n") |
| 77 | |
| 78 | def log_output(self, output: str | AnyFormattedText) -> None: |
| 79 | """Log the output in the audit log, if it's enabled.""" |