seddonym / grimp

Builds a graph of a Python project's internal dependencies.
https://grimp.readthedocs.io
BSD 2-Clause "Simplified" License
51 stars 10 forks source link

Add logging #110

Open seddonym opened 1 year ago

seddonym commented 1 year ago

In particular with a view to allowing Import Linter to verbosely output logging depending on the verbose flag.

seddonym commented 1 year ago

Probably the best way to achieve this is to just use Python's logging module, with certain log levels in mind. Import Linter can then capture and output the appropriate log level depending on the verbosity.

I think the best approach is to use INFO to correspond to output that Import Linter will display during verbose mode. That gives us the lower-level DEBUG mode to potentially use if Import Linter is run in debug mode.