You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Env: Testing Log Level and the change event for all logs
Configure log levels for all log channels using the command Set Log Level... and make sure
log level change is being propagated in env and also in your log output channel
log output channel UI is not logging the logs those do not respect the set log level.
Log Output Channel: Testing Log Level and the change event for a log output channel
Configure log levels for this log channel using the command Set Log Level... and make sure
log level is being propagated to your output channel
log output channel UI is not logging the logs those do not respect the set log level.
this overrides the log level configured for all loggers.
CLI: Testing Log Level configure from CLI
You can now configure the default log level for an extension from CLI using the format code --log <extensionId>:<logLevel>, for eg., the following sets the log level to trace for all log output channels of vscode.git extension.
code --log vscode.git:trace
Following will set the log level to debug for all loggers (Note this format is already supported)
code --log debug
Please make sure
the configured log level is propagated to your output channel
the log level that was set for all loggers from the command line, is propagated to your output channel and also in env
log output channel UI is not logging the logs those do not respect the configured log level.
the documentation in the CLI explains this.
The text was updated successfully, but these errors were encountered:
@sandy081 This command did not work for me code-insiders --log vscode.git:trace . but code-insiders . works. I verified that vscode.git is installed. Created #164661 to track this.
Refs: #159892, #161944
Complexity: 5
Create Issue
Proposal
Added, logLevel and the corresponding change event to the output channel and env. Please test these APIs.
vscode/src/vscode-dts/vscode.proposed.extensionLog.d.ts
Lines 18 to 30 in 5a326b2
vscode/src/vscode-dts/vscode.proposed.extensionLog.d.ts
Lines 32 to 46 in 5a326b2
Testing
Create a log output channel using the following API
vscode/src/vscode-dts/vscode.proposed.extensionLog.d.ts
Line 96 in 5a326b2
Env: Testing Log Level and the change event for all logs
Configure log levels for all log channels using the command
Set Log Level...
and make sureLog Output Channel: Testing Log Level and the change event for a log output channel
Configure log levels for this log channel using the command
Set Log Level...
and make sureCLI: Testing Log Level configure from CLI
You can now configure the default log level for an extension from CLI using the format
code --log <extensionId>:<logLevel>
, for eg., the following sets the log level to trace for all log output channels ofvscode.git
extension.Following will set the log level to debug for all loggers (Note this format is already supported)
Please make sure
The text was updated successfully, but these errors were encountered: