Skip to content

Commit

Permalink
Document how to colorize levels (winstonjs#1258)
Browse files Browse the repository at this point in the history
  • Loading branch information
morenoh149 authored and indexzero committed Apr 6, 2018
1 parent 65308ac commit 147dee5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,17 @@ Possible options are below.

* Background colors: `blackBG`, `redBG`, `greenBG`, `yellowBG`, `blueBG`
`magentaBG`, `cyanBG`, `whiteBG`

### Colorizing Standard logging levels

To colorize the standard logging level add
```js
winston.format.combine(
winston.format.colorize(),
winston.format.json()
)
```
where `winston.format.json()` is whatever other formatter you want to use.

## Transports

Expand Down

0 comments on commit 147dee5

Please sign in to comment.