Integrate the log messages with IDA's output window.
| 14 | import logging |
| 15 | |
| 16 | class IdaLogHandler(logging.Handler): |
| 17 | """Integrate the log messages with IDA's output window.""" |
| 18 | |
| 19 | def emit(self, record): |
| 20 | """Emit a log record into IDA's output window. |
| 21 | |
| 22 | Args: |
| 23 | record (LogRecord): a logging.LogRecord instance |
| 24 | """ |
| 25 | idc.msg("%s\n" % (super(IdaLogHandler, self).format(record))) |
| 26 | |
| 27 | class MessageBox(idaapi.Form): |
| 28 | """Wrapper class that represents a GUI MessageBox. |