Add support for "log": "<level>"
to the argv.json (fixes #118824)
This commit is contained in:
parent
d96f34c867
commit
391b1a6b57
11
src/main.js
11
src/main.js
|
@ -160,7 +160,10 @@ function configureCommandlineSwitchesSync(cliArgs) {
|
|||
|
||||
// TODO@sandbox remove me once testing is done on `vscode-file` protocol
|
||||
// (all traces of `enable-browser-code-loading` and `ENABLE_VSCODE_BROWSER_CODE_LOADING`)
|
||||
'enable-browser-code-loading'
|
||||
'enable-browser-code-loading',
|
||||
|
||||
// Log level to use. Default is 'info'. Allowed values are 'critical', 'error', 'warn', 'info', 'debug', 'trace', 'off'.
|
||||
'log-level',
|
||||
];
|
||||
|
||||
// Read argv config
|
||||
|
@ -205,6 +208,12 @@ function configureCommandlineSwitchesSync(cliArgs) {
|
|||
process.env['ENABLE_VSCODE_BROWSER_CODE_LOADING'] = argvValue;
|
||||
}
|
||||
break;
|
||||
|
||||
case 'log-level':
|
||||
if (typeof argvValue === 'string') {
|
||||
process.argv.push('--log', argvValue);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
@ -361,6 +361,10 @@ import { IJSONSchema } from 'vs/base/common/jsonSchema';
|
|||
items: {
|
||||
type: 'string'
|
||||
}
|
||||
},
|
||||
'log-level': {
|
||||
type: 'string',
|
||||
description: localize('argv.logLevel', "Log level to use. Default is 'info'. Allowed values are 'critical', 'error', 'warn', 'info', 'debug', 'trace', 'off'.")
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue