058c19d67788872c40bdc7c729302794abbebfa2
Config Manager
Description
This package was created to run my applications. The ConfigManager class implements the entry point for the program and provides the actual application configuration. It also simplifies logging setup.
Logging (v2)
Logging is configured from the config file only if it contains a log section in dictConfig format. If there is no log section, the manager logs a warning and the default Python level (WARNING) remains, so INFO/DEBUG messages may not appear.
How to verify that logging config is applied:
- Ensure your config file path is correct and the file is loaded on startup (no error in logs about reading config).
- Ensure the config has a
logkey withversion: 1,handlers, andloggers(seetests/config.yamlfor an example). - After startup you should see an INFO message:
"Logging configuration applied"(fromconfig_manager.v1.log_manager). If you do not see it, either thelogsection is missing (you will see a warning) or the root/package log level is above INFO.
Installation
pip install git+https://git.lesha.spb.ru/alex/config_manager.git
Contacts
- e-mail: lesha.spb@gmail.com
- telegram: https://t.me/lesha_spb
Description
Languages
Python
100%