Improve logging and configuration #65

Merged
pfm merged 12 commits from logging-and-config into master 2022-05-13 22:01:11 +02:00
Collaborator
  • Use logging Python package instead of custom file-based code.
  • Move configuration to a separate module and make it more coherent.
- Use logging Python package instead of custom file-based code. - Move configuration to a separate module and make it more coherent.
pfm added 4 commits 2022-04-10 19:43:20 +02:00
82c79ead69 Extract config, separate logging, split into smaller functions
- Move configuration-processing code to a separate module (lacre.config) and
  provide a simple API to access configuration parameters.
- Prepare to use builtin logging module to log diagnostic data.
- Rework the configuration-processing file to make it cleaner.
- Log additional information while processing configuration.
- Reorder functions.
99cb07b015 Use logging module
- Replace custom logging code with calls to logging module.
- Use logging.config to provide configuration parameters.

To make Lacre's logging more flexible, use fileConfig from logging.config to
set up all parameters.  If the configuration file is missing, use dictConfig
with hardcoded reasonable defaults.
Author
Collaborator

This PR takes care of #50 and #55.

This PR takes care of #50 and #55.
pfm added 1 commit 2022-04-12 21:44:59 +02:00
pfm added 1 commit 2022-04-24 22:31:04 +02:00
pfm force-pushed logging-and-config from f9629c3938 to 9dfc447169 2022-05-06 20:18:04 +02:00 Compare
pfm added 2 commits 2022-05-06 20:41:46 +02:00
pfm added 1 commit 2022-05-11 19:16:53 +02:00
pfm added 1 commit 2022-05-11 19:57:54 +02:00
pfm added 1 commit 2022-05-13 21:28:54 +02:00
11b78ce0fb Adjust log entry levels for severe conditions
When Lacre is misconfigured or can't proceed, report WARNING or even ERROR
level messages.
pfm added 1 commit 2022-05-13 21:57:56 +02:00
pfm merged commit 5639d8e5b6 into master 2022-05-13 22:01:11 +02:00
pfm deleted branch logging-and-config 2022-05-13 22:01:11 +02:00
Sign in to join this conversation.
No description provided.