Skip to content

Commit

Permalink
added humanReadableUnhandledException to README
Browse files Browse the repository at this point in the history
  • Loading branch information
charukiewicz committed Sep 15, 2015
1 parent 64082d4 commit 04e2928
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -255,11 +255,13 @@ If you want to use this feature with the default logger simply call `.handleExce
winston.handleExceptions(new winston.transports.File({ filename: 'path/to/exceptions.log' }))

//
// Alternatively you can set `.handleExceptions` to true when adding transports to winston
// Alternatively you can set `.handleExceptions` to true when adding transports to winston.
// You can use the `.humanReadableUnhandledException` option to get more readable exceptions.
//
winston.add(winston.transports.File, {
filename: 'path/to/all-logs.log',
handleExceptions: true
handleExceptions: true,
humanReadableUnhandledException: true
});
```

Expand Down

0 comments on commit 04e2928

Please sign in to comment.