Skip to content

Commit

Permalink
Document how to colorize levels
Browse files Browse the repository at this point in the history
  • Loading branch information
morenoh149 committed Apr 4, 2018
1 parent cf52302 commit 195a04a
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 195a04a

Please sign in to comment.