log_config_append disables existing loggers
Bug #1370439 reported by
Daniele Venzano
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
oslo.log |
Fix Released
|
Low
|
Brant Knudson |
Bug Description
The description of the "log_config_append" says that the logging configuration provided in the file will be appended to any other existing logging option.
This is not the case, every other logging option I set in the configuration file is ignored, the if ... else in the setup() call in log.py prevents any other option to be used.
Either the documentation is wrong/confusing or the code is not doing what it is supposed to do.
I would like to have logs sent to logstash through a custom handler class, but also save them locally with log_dir.
Changed in oslo.log: | |
status: | Incomplete → Confirmed |
Changed in oslo.log: | |
milestone: | next-kilo → none |
tags: | added: doc |
Changed in oslo.log: | |
milestone: | none → 1.12.0 |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
The option and its description are both poorly worded.
The intent is to allow you to have multiple logging configuration files outside of the main openstack configuration file. It is not to append that configuration to the configuration managed in the openstack configuration file. We assume if you are going to the trouble of setting up an external file, you will do *all* of the log configuration using that file.
We can clarify the help text for the option.