MXS-1300: Add enabled log priorities to /maxscale/logs resurce

The logging priorities should be displayed as a part of the resource as
they can be enabled or disabled at runtime.
This commit is contained in:
Markus Mäkelä
2017-07-21 17:39:57 +03:00
parent f28a919982
commit 84dc0b2d37
2 changed files with 34 additions and 0 deletions

View File

@ -112,6 +112,7 @@ exports.builder = function(yargs) {
maxctrl(argv, function(host) {
return getResource(host, 'maxscale/logs', [
{'Current Log File': 'attributes.log_file'},
{'Enabled Log Levels': 'attributes.log_priorities'},
{'Parameters': 'attributes.parameters'}
])
})