Sha256: 155f80830a442260229dfef9dd8dfdae61f52559d8ed4f9115af9731685320b7

Contents?: true

Size: 547 Bytes

Versions: 10

Compression:

Stored size: 547 Bytes

Contents

"use strict";
var layouts = require('../layouts')
, consoleLog = console.log.bind(console);

function consoleAppender (layout, timezoneOffset) {
  layout = layout || layouts.colouredLayout;
  return function(loggingEvent) {
    consoleLog(layout(loggingEvent, timezoneOffset));
  };
}

function configure(config) {
  var layout;
  if (config.layout) {
    layout = layouts.layout(config.layout.type, config.layout);
  }
  return consoleAppender(layout, config.timezoneOffset);
}

exports.appender = consoleAppender;
exports.configure = configure;

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
hooch-0.4.2 jasmine/node_modules/karma/node_modules/log4js/lib/appenders/console.js
hooch-0.4.1 jasmine/node_modules/karma/node_modules/log4js/lib/appenders/console.js
hooch-0.4.0 jasmine/node_modules/karma/node_modules/log4js/lib/appenders/console.js
hooch-0.3.0 jasmine/node_modules/karma/node_modules/log4js/lib/appenders/console.js
hooch-0.2.1 jasmine/node_modules/karma/node_modules/log4js/lib/appenders/console.js
hooch-0.2.0 jasmine/node_modules/karma/node_modules/log4js/lib/appenders/console.js
hooch-0.1.0 jasmine/node_modules/karma/node_modules/log4js/lib/appenders/console.js
hooch-0.0.8 jasmine/node_modules/karma/node_modules/log4js/lib/appenders/console.js
hooch-0.0.7 jasmine/node_modules/karma/node_modules/log4js/lib/appenders/console.js
hooch-0.0.6 jasmine/node_modules/karma/node_modules/log4js/lib/appenders/console.js