1
0
mirror of https://github.com/mgerb/mywebsite synced 2026-01-13 19:12:49 +00:00

updated package.json

This commit is contained in:
2016-01-04 12:25:28 -05:00
parent 4f1900baa0
commit cf95136db0
1168 changed files with 73752 additions and 26424 deletions

View File

@@ -0,0 +1,26 @@
/*
* unhandle-exceptions.js: A test fixture for using `.unhandleExceptions()` winston.
*
* (C) 2011 Charlie Robbins
* MIT LICENCE
*
*/
var path = require('path'),
winston = require('../../../lib/winston');
var logger = new (winston.Logger)({
transports: [
new (winston.transports.File)({
filename: path.join(__dirname, '..', 'logs', 'unhandle-exception.log'),
handleExceptions: true
})
]
});
logger.handleExceptions();
logger.unhandleExceptions();
setTimeout(function () {
throw new Error('OH NOES! It failed!');
}, 1000);