diff --git a/lib/config.js b/lib/config.js index 16ca69681..ff2eba886 100644 --- a/lib/config.js +++ b/lib/config.js @@ -160,6 +160,13 @@ var KarmaDsl = function(config) { }}); }); + ['LOG_DISABLE', 'LOG_INFO', 'LOG_DEBUG', 'LOG_WARN', 'LOG_ERROR'].forEach(function(name) { + Object.defineProperty(global, name, {get: function() { + log.warn('%s is not supported anymore.\n Please use `karma.%s` instead.', name, name); + return constant.LOG_INFO; + }}); + }); + this.configure = function(newConfig) { Object.keys(newConfig).forEach(function(key) { config[key] = newConfig[key];