-
Notifications
You must be signed in to change notification settings - Fork 673
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
Adding service that can direct logging to vscode console #377
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.
Just one small suggestion! Great work Riccardo, this will really improve our bug reports
|
||
export const consoleLogger: ILogger = createLogger( | ||
(level, message, ...params) => { | ||
if (level != 'off') { |
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.
can we do level.toLower() !== 'off'
here to clear the warnings?
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.
thx for spotting the !=
, I fixed it now!
- using classes instead of functions (feels like it fits better the use case) - using singleton global to not pass logging service around
@ingalless @jmg-duarte major changes:
|
@ingalless @jmg-duarte I have merged this to unblock the release, but feel free to still look at the code and leave comments, they can be addressed in a separate PR |
This should make debugging reported issues much easier