RFC: Incremental logging configuration (not possible?)
Currently it is possible to change logging configuration by changing the
LOGGING variable with
However, this will change the entire logging configuration. If you want to keep default the default configuration would need to be replicated.
Python provides neccessary mechanisms to create incremental logging configurations. The logging.config lets specifying a special field
The idea how it might work:
- New directory
/etc/lava-server/logging.conf.d/will contain configuration YAML files.
- YAML files are loaded with to python dictionaries.
- Dictionaries are passed to
This also allows just general logging configuration.
One issue is
LAVADaemonCommand which sets up its own logging and its configuration. I think the
setup_logging function should also read those YAML dictionaries and load configurations.