Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[doc] Add `exception` example

  • Loading branch information...
commit baf392e8a42aacef901d03ba04b8b4fc2e084a53 1 parent 8028071
@mmalecki mmalecki authored
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!');
Please sign in to comment.
Something went wrong with that request. Please try again.