From e3257930e104eac77bcc06149af3472b8c8f5f96 Mon Sep 17 00:00:00 2001 From: enqode-hub <47137960+enqode-hub@users.noreply.github.com> Date: Thu, 15 Aug 2019 06:46:11 +0200 Subject: [PATCH] Made the code example fully executable (#1677) Because of the missing require statement when copy & paste the code example the code didn't work. This commit changes this. --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 53cf4f47b..f815b6d46 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,8 @@ The recommended way to use `winston` is to create your own logger. The simplest way to do this is using `winston.createLogger`: ``` js +const winston = require('winston'); + const logger = winston.createLogger({ level: 'info', format: winston.format.json(),