-
Notifications
You must be signed in to change notification settings - Fork 154
Bug: Logger doesn't log to vscode debug terminal #926
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
Comments
@StefanVolkmer-WW thanks for opening the issue. Could you please share your |
Hello @dreamorosi You can reproduce it with a Standard Config. Just Clone the Repository, |
Thanks for the config & sample repository, it's been really helpful. I've looked into it and was able to reproduce the issue but I believe this is not a bug of Powertools Logger. As you can see in this part of the Logger implementation, we output logs directly to With that said, while looking at your repo I noticed that also something like In one of the comments, it is suggested to add an additional setting (
See screenshot below that shows the new config, running your code, and with all the log outputs. I'm going to be closing the issue and remove the bug label. |
|
Hello,
While development, i run my code locally in vscode.
But the lambda-powertools-logger doesn't log to the vscode debug terminal.
The following Code shows the Problem.
`
If i use console.log etc the Loggings are shown in the vscode debug terminal.
But the logger from the powertools are not shown.
if i would add a small hack above:
//@ts-ignore logger.console = console;
Then the loggings are shown in the debug terminal.
Expected Behavior
The Logs which are written, should be also shown in the vscode debug terminal.
Environment
The text was updated successfully, but these errors were encountered: