Add modular logging facility. Logging configuration is defined globally in __main__.py, with global log level and destination set via the CLI --verbosity and --logtofile arguments. Subsidiary modules can use self.logger = logging.setLogger(__name__) and individual module log levels can be overridden using e.g. self.logger.setLevel(DEBUG).
Minor About dialog updates.
Tidy up string definitions.
Fixes # (issue)
Testing
Please test all changes, however trivial, against the supplied pytest suite tests/test_*.py. Please describe any test cases you have amended or added to this suite to maintain >= 99% code coverage.
PyGPSClient Pull Request Template
Description
CHANGES:
__main__.py
, with global log level and destination set via the CLI--verbosity
and--logtofile
arguments. Subsidiary modules can useself.logger = logging.setLogger(__name__)
and individual module log levels can be overridden using e.g.self.logger.setLevel(DEBUG)
.Fixes # (issue)
Testing
Please test all changes, however trivial, against the supplied pytest suite
tests/test_*.py
. Please describe any test cases you have amended or added to this suite to maintain >= 99% code coverage.Checklist:
tests/test_*.py
unittest suite to maintain test coverage.tests/test_*.py
unittest suite.