yossizap / angrcutter

Angr integration with Cutter's debugger
GNU General Public License v3.0
33 stars 7 forks source link

Implement better logging #2

Closed ITAYC0HEN closed 4 years ago

ITAYC0HEN commented 4 years ago

This pr implements a better logging mechanism.

In general, I suggest using the logging library, or elementals. Especially if you're planning to keep maintaining the plugin currently, there are ~15 prints so it's not a big deal to use the enum I did with a printing function but logger would be nice if you'd want to log stuff to a log file (for verbose output, debug purposes, etc), have better control of logging level, etc. For some symbolization one would want to find a big buffer *and not only 100bytes), thus, logging it to a file is a great option.

This pr also apply pep8 formatting