We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a117a2a commit e3e744bCopy full SHA for e3e744b
packages/common/services/console-logger.service.ts
@@ -1,6 +1,6 @@
1
import { inspect, InspectOptions } from 'util';
2
import { Injectable, Optional } from '../decorators/core';
3
-import { clc, yellow } from '../utils/cli-colors.util';
+import { clc, yellow, isColorAllowed } from '../utils/cli-colors.util';
4
import {
5
isFunction,
6
isPlainObject,
@@ -154,7 +154,7 @@ export class ConsoleLogger implements LoggerService {
154
155
opts = opts ?? {};
156
opts.logLevels ??= DEFAULT_LOG_LEVELS;
157
- opts.colors ??= opts.colors ?? (opts.json ? false : true);
+ opts.colors ??= opts.colors ?? (opts.json ? false : isColorAllowed());
158
opts.prefix ??= 'Nest';
159
160
this.options = opts;
0 commit comments