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