MXS-1300: Add show logging command

The show logging command shows the current log file and the logging
parameters.
This commit is contained in:
Markus Mäkelä
2017-07-21 09:11:20 +03:00
parent cf8028a5ce
commit 310ef3b31e
2 changed files with 11 additions and 1 deletions

View File

@ -3037,6 +3037,7 @@ json_t* mxs_logs_to_json(const char* host)
json_t* attr = json_object();
json_object_set_new(attr, CN_PARAMETERS, param);
json_object_set_new(attr, "log_file", json_string(lm->lm_filewriter.fwr_file->sf_fname));
json_t* data = json_object();
json_object_set_new(data, CN_ATTRIBUTES, attr);