From 6545a7e21a908f9c24f10d7b27b578b64e24777b Mon Sep 17 00:00:00 2001 From: Reece Daniels <31162373+rubengmurray@users.noreply.github.com> Date: Sun, 21 Jun 2020 09:56:50 +0100 Subject: [PATCH] remove emitErrs note from README (its no longer supported) (#1810) Co-authored-by: Reece Daniels --- README.md | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 23fb14616..91ae12a70 100644 --- a/README.md +++ b/README.md @@ -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'); @@ -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