[skip ci] enable colored logs in debug mode

This commit is contained in:
Brahim Hadriche committed 2025-01-31 18:17:20 -05:00
1 parent 83627b67ec
commit 5c02d46f1d
1 file changed
+2 -5
+2 -5
View File
@@ -162,9 +162,9 @@ export class LoggerPlugin implements CompilerPlugin {
const func = logFunctions[level as 'LogError' | 'LogWarn' | 'LogInfo' | 'LogDebug']; const func = logFunctions[level as 'LogError' | 'LogWarn' | 'LogInfo' | 'LogDebug'];
// https://github.com/microsoft/vscode/issues/571 let logLine = '';
const USE_COLOR = false;
if (isDebug) {
const RED = '[31m'; const RED = '[31m';
const YELLOW = '[33m'; const YELLOW = '[33m';
const GREEN = '[32m'; const GREEN = '[32m';
@@ -174,9 +174,6 @@ export class LoggerPlugin implements CompilerPlugin {
const BOLD_GREEN = '[1;32m'; const BOLD_GREEN = '[1;32m';
const CLEAR = '[0m'; const CLEAR = '[0m';
let logLine = '';
if (isDebug && USE_COLOR) {
switch (func.stringLevel) { switch (func.stringLevel) {
case 'ERROR': case 'ERROR':
logLine = `Chr(27) + "${BOLD_RED}" + "[${func.stringLevel}]" + Chr(27) + "${RED}" + ${msg} + Chr(27) + "${CLEAR}"`; logLine = `Chr(27) + "${BOLD_RED}" + "[${func.stringLevel}]" + Chr(27) + "${RED}" + ${msg} + Chr(27) + "${CLEAR}"`;