Files
config_manager/README.md

1.3 KiB

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 log key with version: 1, handlers, and loggers (see tests/config.yaml for an example).
  • After startup you should see an INFO message: "Logging configuration applied" (from config_manager.v1.log_manager). If you do not see it, either the log section 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