We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8d1d38 commit 0c8df7dCopy full SHA for 0c8df7d
src/utils/logger.utils.ts
@@ -11,18 +11,11 @@ export enum ConsolaLogLevel {
11
Verbose = 999
12
}
13
14
-// Verificar se está rodando como binário compilado
15
-const isPackaged = process.argv[0].includes('gql-federation-schema-parser')
16
-
17
export function appLogger(logLevel = ConsolaLogLevel.Info, useColors?: boolean) {
18
- const shouldUseColors = useColors !== undefined ? useColors : !isPackaged
19
20
return createConsola({
21
level: logLevel,
22
23
- // fancy: isPackaged ? false : shouldUseColors,
24
formatOptions: {
25
- colors: shouldUseColors,
+ colors: useColors,
26
columns: process.stdout.columns || 80
27
28
})
0 commit comments