Skip to content
Browse files

[doc] Add `exception` example

  • Loading branch information...
1 parent 8028071 commit baf392e8a42aacef901d03ba04b8b4fc2e084a53 @mmalecki mmalecki committed
Showing with 4 additions and 0 deletions.
  1. +4 −0 examples/exception.js
View
4 examples/exception.js
@@ -0,0 +1,4 @@
+var winston = require('../');
+winston.handleExceptions(new winston.transports.Console({ colorize: true, json: true }));
+
+throw new Error('Hello, winston!');

0 comments on commit baf392e

Please sign in to comment.
Something went wrong with that request. Please try again.