Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var winston = require('winston');
- var logger = new winston.Logger({
- transports: [
- new winston.transports.Console({
- handleExceptions: true,
- json: true
- })
- ],
- exitOnError: false
- });
- setTimeout(function () {
- console.log('Normal exit.');
- }, 1000);
- throw new Error('Oops.');
Add Comment
Please, Sign In to add comment