Skip to content

Commit

Permalink
remove emitErrs note from README (its no longer supported) (#1810)
Browse files Browse the repository at this point in the history
Co-authored-by: Reece Daniels <[email protected]>
  • Loading branch information
rubengmurray and Reece Daniels authored Jun 21, 2020
1 parent b47d5d5 commit 6545a7e
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -627,8 +627,8 @@ const myCustomLevels = {
}
};

const customLevelLogger = winston.createLogger({
levels: myCustomLevels.levels
const customLevelLogger = winston.createLogger({
levels: myCustomLevels.levels
});

customLevelLogger.foobar('some foobar level-ed message');
Expand Down Expand Up @@ -1098,11 +1098,6 @@ you should handle or suppress if you don't want unhandled exceptions:
// Handle errors
//
logger.on('error', function (err) { /* Do Something */ });

//
// Or just suppress them.
//
logger.emitErrs = false;
```

### Working with multiple Loggers in winston
Expand Down

0 comments on commit 6545a7e

Please sign in to comment.