1
0
mirror of https://github.com/mgerb/mywebsite synced 2026-01-13 03:02:49 +00:00
Files
mywebsite/node_modules/winston/examples/exception.js
2016-01-04 12:25:28 -05:00

5 lines
157 B
JavaScript

var winston = require('../');
winston.handleExceptions(new winston.transports.Console({ colorize: true, json: true }));
throw new Error('Hello, winston!');