[skip ci] enable colored logs in debug mode
This commit is contained in:
1 parent
83627b67ec
commit
5c02d46f1d
1 file changed
+2
-5
@@ -162,9 +162,9 @@ export class LoggerPlugin implements CompilerPlugin {
|
||||
|
||||
const func = logFunctions[level as 'LogError' | 'LogWarn' | 'LogInfo' | 'LogDebug'];
|
||||
|
||||
// https://github.com/microsoft/vscode/issues/571
|
||||
const USE_COLOR = false;
|
||||
let logLine = '';
|
||||
|
||||
if (isDebug) {
|
||||
const RED = '[31m';
|
||||
const YELLOW = '[33m';
|
||||
const GREEN = '[32m';
|
||||
@@ -174,9 +174,6 @@ export class LoggerPlugin implements CompilerPlugin {
|
||||
const BOLD_GREEN = '[1;32m';
|
||||
const CLEAR = '[0m';
|
||||
|
||||
let logLine = '';
|
||||
|
||||
if (isDebug && USE_COLOR) {
|
||||
switch (func.stringLevel) {
|
||||
case 'ERROR':
|
||||
logLine = `Chr(27) + "${BOLD_RED}" + "[${func.stringLevel}]" + Chr(27) + "${RED}" + ${msg} + Chr(27) + "${CLEAR}"`;
|
||||
|
||||
Reference in new issue
Block a user