MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / do_log

Method do_log

python/workflow.py:799–816  ·  view source on GitHub ↗

Control workflow logging.

(self, line)

Source from the content-addressed store, hash-verified

797 self.machine = machine
798
799 def do_log(self, line):
800 """Control workflow logging."""
801 parser = argparse.ArgumentParser(exit_on_error=False)
802 parser.add_argument("--enable", action="store_true", default=None, help="Enable logging")
803 parser.add_argument("--disable", action="store_true", default=False, help="Disable logging")
804 parser.add_argument("--global", action="store_true", default=False, dest="is_global", help="Enable or disable logging globally")
805 try:
806 args = parser.parse_args(line.split())
807 if args.enable is None:
808 enable = not args.disable
809 else:
810 enable = args.enable
811 status = self.machine.log(enable=enable, is_global=args.is_global)
812 print(json.dumps(status, indent=4))
813 except argparse.ArgumentError as e:
814 print("ArgumentError:", e)
815 except SystemExit:
816 pass
817
818 def do_metrics(self, line):
819 """Control workflow metrics collection."""

Callers

nothing calls this directly

Calls 2

splitMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected