Skip to content

Commit

Permalink
Made the code example fully executable (#1677)
Browse files Browse the repository at this point in the history
Because of the missing require statement when copy & paste the code example the code didn't work. This commit changes this.
  • Loading branch information
enqode-hub authored and DABH committed Aug 15, 2019
1 parent 9399f08 commit e325793
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit e325793

Please sign in to comment.