Skip to content

Commit 781ad3b

Browse files
Merge pull request #1639 from danielsharvey/patch-1
docs(logger): Explain how to disable color
2 parents 8514e9c + b059a8b commit 781ad3b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

content/techniques/logger.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ await app.listen(3000);
3535

3636
Values in the array can be any combination of `'log'`, `'error'`, `'warn'`, `'debug'`, and `'verbose'`.
3737

38+
> info **Hint** To disable color in the default logger's messages, set the `NO_COLOR` environment variable.
39+
3840
#### Custom implementation
3941

4042
You can provide a custom logger implementation to be used by Nest for system logging by setting the value of the `logger` property to an object that fulfills the `LoggerService` interface. For example, you can tell Nest to use the built-in global JavaScript `console` object (which implements the `LoggerService` interface), as follows:

0 commit comments

Comments
 (0)