How to use the karma/lib/logger.setup function in karma

To help you get started, we’ve selected a few karma examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github MortenHoustonLudvigsen / KarmaTestAdapter / karma-vs-reporter / src / Commands.js View on Github external
function getKarmaConfig(config) {
        var logger = require("karma/lib/logger");
        var cfg = require('karma/lib/config');
        var karmaConfigFile = path.resolve(config.karmaConfigFile);

        // Config
        logger.setup('INFO', false);
        var log = Util.createLogger(logger);

        var karmaConfig = {
            singleRun: true,
            browsers: [],
            reporters: [],
            colors: false,
            logLevel: 'INFO'
        };

        if (_.isObject(config.config)) {
            karmaConfig = extend(karmaConfig, config.config);
        }

        return cfg.parseConfig(karmaConfigFile, karmaConfig);
    }
github MortenHoustonLudvigsen / KarmaTestAdapter / karma-vs-reporter / src / Util.js View on Github external
function setupLogger() {
    require("karma/lib/logger").setup('INFO', false);
}
exports.setupLogger = setupLogger;
github MortenHoustonLudvigsen / KarmaTestAdapter / karma-vs-reporter / src / Util.ts View on Github external
export function getKarmaConfig(config: Config, extensions?) {
    var karmaConfigFile = path.resolve(config.karmaConfigFile);

    var extend = require('extend');
    var logger = require("karma/lib/logger");
    var cfg = require('karma/lib/config');

    logger.setup('INFO', false);

    var karmaConfig: any = {
        configFile: karmaConfigFile,
        singleRun: true,
        browsers: [],
        reporters: [],
        colors: false,
        logLevel: 'INFO'
    };

    if (_.isObject(config.config)) {
        karmaConfig = extend(karmaConfig, config.config);
    }

    Globals.origConfig = cfg.parseConfig(karmaConfigFile, karmaConfig);
    karmaConfig = extend({}, Globals.origConfig, extensions);
github MortenHoustonLudvigsen / KarmaTestAdapter / karma-vs-reporter / src / Util.js View on Github external
function getKarmaConfig(config, extensions) {
    var karmaConfigFile = path.resolve(config.karmaConfigFile);

    var extend = require('extend');
    var logger = require("karma/lib/logger");
    var cfg = require('karma/lib/config');

    logger.setup('INFO', false);

    var karmaConfig = {
        configFile: karmaConfigFile,
        singleRun: true,
        browsers: [],
        reporters: [],
        colors: false,
        logLevel: 'INFO'
    };

    if (_.isObject(config.config)) {
        karmaConfig = extend(karmaConfig, config.config);
    }

    Globals.origConfig = cfg.parseConfig(karmaConfigFile, karmaConfig);
    karmaConfig = extend({}, Globals.origConfig, extensions);
github MortenHoustonLudvigsen / KarmaTestAdapter / karma-vs-reporter / src / Util.ts View on Github external
export function setupLogger() {
    require("karma/lib/logger").setup('INFO', false);
}