MXS-1220: Implement /maxscale/logs resource

The /maxscale/logs resource exposes information about the state of logging
in MaxScale.
This commit is contained in:
Markus Mäkelä
2017-05-05 11:59:46 +03:00
parent d4212b9c78
commit 1cb2783106
3 changed files with 33 additions and 5 deletions

View File

@ -13,11 +13,14 @@
*/
#include <maxscale/cdefs.h>
#include <assert.h>
#include <stdbool.h>
#include <syslog.h>
#include <unistd.h>
#include <maxscale/jansson.h>
MXS_BEGIN_DECLS
/**
@ -105,6 +108,7 @@ void mxs_log_set_augmentation(int bits);
void mxs_log_set_throttling(const MXS_LOG_THROTTLING* throttling);
void mxs_log_get_throttling(MXS_LOG_THROTTLING* throttling);
json_t* mxs_logs_to_json(const char* host);
static inline bool mxs_log_priority_is_enabled(int priority)
{