Sha256: 9472296d14bd912aa73b8d2be76c644c6122e88651a0a671e4de06276985d8c7
Contents?: true
Size: 564 Bytes
Versions: 21
Compression:
Stored size: 564 Bytes
Contents
/* * default-exceptions.js: A test fixture for logging exceptions with the default winston logger. * * (C) 2011 Charlie Robbins * MIT LICENCE * */ var path = require('path'), winston = require('../../../lib/winston'); winston.exitOnError = function (err) { return err.message !== 'Ignore this error'; }; winston.handleExceptions([ new (winston.transports.File)({ filename: path.join(__dirname, '..', 'logs', 'exit-on-error.log'), handleExceptions: true }) ]); setTimeout(function () { throw new Error('Ignore this error'); }, 1000);
Version data entries
21 entries across 21 versions & 2 rubygems