Skip to content

Commit e325793

Browse files
enqode-hubDABH
authored andcommitted
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.
1 parent 9399f08 commit e325793

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ The recommended way to use `winston` is to create your own logger. The
4747
simplest way to do this is using `winston.createLogger`:
4848

4949
``` js
50+
const winston = require('winston');
51+
5052
const logger = winston.createLogger({
5153
level: 'info',
5254
format: winston.format.json(),

0 commit comments

Comments
 (0)