mkws.logger = JL('mkws');
var consoleAppender = JL.createConsoleAppender('consoleAppender');
-mkws.logger.setOptions({ "appenders": [consoleAppender],
- "level": mkws.stringToLevel(mkws.log_level) });
+mkws.logger.setOptions({ "appenders": [consoleAppender] });
function _log(fn, string) {
mkws.setMkwsConfig = function(overrides) {
// Set global log_level flag early so that _log() works
var tmp = overrides.log_level;
- if (typeof(tmp) !== 'undefined') mkws.log_level = tmp;
+ if (typeof(tmp) !== 'undefined') {
+ console.log("setting level to '" + tmp + "'");
+ mkws.logger.setOptions({ "level": mkws.stringToLevel(tmp) });
+ }
var config_default = {
use_service_proxy: true,