From 147dee5e9d1cb88dd184c7faad5cd083ad1526f8 Mon Sep 17 00:00:00 2001 From: Harry Moreno Date: Fri, 6 Apr 2018 12:35:58 -0400 Subject: [PATCH] Document how to colorize levels (#1258) * closes #1135 --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 092f1ae22..c536f24a6 100644 --- a/README.md +++ b/README.md @@ -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