Feature #2347
closedAdd support for standard logging module
90%
Description
In order to support a CLI (see issue #2343), the level of output needs to be variable, from terse to verbose. The proper solution will be to use the standard Python logging module. All existing print statements need to be reviewed, as most will need to be converted to use a logging call.
I have patches in hand that get this process started. The first adds a custom logger module and command line options for controlling it from the chirp.py CLI. The second adds all existing debug statements (controlled via CHIRP_DEBUG) to use it. The last converts a handful of other message to use it as well, making the CLI usable.
Additional patches will be required to convert other print statements and to add equivalent option parsing to the GUI.
Updated by Zach Welch over 9 years ago
- Status changed from New to In Progress
- % Done changed from 50 to 90
All of the existing print calls have been converted to logging calls. Some may still need to be tweaked (e.g. changed to different logging levels) and more likely need to be added.
Updated by Bernhard Hailer over 4 years ago
- Status changed from In Progress to Closed
Appears to be complete.