Logger output_options inheritance not working
Describe the bug When defining the "kea-dhcp4" logger with output options and further sub-loggers like "kea-dhcp4.alloc-engine" without output options, they won't appear in the file defined in the parent logger.
To Reproduce Steps to reproduce the behavior:
- Run Kea dhcpv4 with the following logger config
"loggers": [
{
"name": "kea-dhcp4",
"severity": "INFO",
#"severity": "DEBUG",
"debuglevel": 55,
"output_options": [
{
"output": "/var/log/kea/kea.log",
#"output": "/tmp/keadebug.log",
"flush": true,
"maxver": 8
}
]
},
{
"name": "kea-dhcp4.alloc-engine",
"severity": "DEBUG",
"debuglevel": 70
}
]
- A client requests an IP
- There are no log messages from alloc-engine in /var/log/kea/kea.log
Expected behavior Debug-level alloc-engine messages.
Environment:
- Kea version: 1.8.1
- OS: Ubuntu 18.04 x64]
- Which features were compiled in: cloudsmith
- If/which hooks where loaded in: kea-ha, lease-commands