Skip to content

Commit

Permalink
doc: fix whitespace and trailing comma. (#1778)
Browse files Browse the repository at this point in the history
* doc: fix whitespace and trailing comma.

* docs: add require statement

* remove whitespace
  • Loading branch information
NotMoni committed May 15, 2020
1 parent 3d07a80 commit 9354721
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -59,17 +59,17 @@ const logger = winston.createLogger({
// - Write all logs with level `info` and below to `combined.log`
//
new winston.transports.File({ filename: 'error.log', level: 'error' }),
new winston.transports.File({ filename: 'combined.log' })
]
new winston.transports.File({ filename: 'combined.log' }),
],
});

//
// If we're not in production then log to the `console` with the format:
// `${info.level}: ${info.message} JSON.stringify({ ...rest }) `
//
//
if (process.env.NODE_ENV !== 'production') {
logger.add(new winston.transports.Console({
format: winston.format.simple()
format: winston.format.simple(),
}));
}
```
Expand Down

0 comments on commit 9354721

Please sign in to comment.