-
Notifications
You must be signed in to change notification settings - Fork 34
Use VS Code's LogOutputChannel for logging #553
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had no idea this existed! Awesome.
|
Ah and I mentioned
I think you are right, looking at the |
…g from error to warn
|
Probably requires another review now that I replaced all the calls of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
|
HI @EhabY. Thanks for your contribution. Could you also add the change to https://github.com/coder/vscode-coder/blob/main/CHANGELOG.md |
|
Added the change to the changlog |
|
Ah right yeah, adding a line to the changelog in the PR is the best way yeah. |
71d9254 to
029711f
Compare
closes #257
In this PR I create a
LogOutputChannelinstead of the oldOutputChannel. By default,appendLineuses theinfologging level so I usedinfoto log most messages, except errors where theerrorlevel was used.I think all of the info can be downgraded into
debuglevel actually, and the errors could be downgraded intowarnsince they are handled or thrown right away. What do you think?