Allow [en|dis]abling of [sys|maxscale]log via maxadmin.

The syslog and maxscalelog can now be enabled and disabled at
runtime using maxadmin.
This commit is contained in:
Johan Wikman
2015-11-24 21:34:23 +02:00
parent 51e41bb2e3
commit af6ec7f346
2 changed files with 78 additions and 0 deletions

View File

@ -2420,6 +2420,8 @@ void flushall_logfiles(bool flush)
void mxs_log_set_highprecision_enabled(bool enabled)
{
log_config.do_highprecision = enabled;
MXS_NOTICE("highprecision logging is %s.", enabled ? "enabled" : "disabled");
}
/**
@ -2430,6 +2432,8 @@ void mxs_log_set_highprecision_enabled(bool enabled)
void mxs_log_set_syslog_enabled(bool enabled)
{
log_config.do_syslog = enabled;
MXS_NOTICE("syslog logging is %s.", enabled ? "enabled" : "disabled");
}
/**
@ -2440,6 +2444,8 @@ void mxs_log_set_syslog_enabled(bool enabled)
void mxs_log_set_maxscalelog_enabled(bool enabled)
{
log_config.do_maxscalelog = enabled;
MXS_NOTICE("maxscalelog logging is %s.", enabled ? "enabled" : "disabled");
}