Skip to content
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

Add console.log option. Closes #981. #982

Closed
wants to merge 1 commit into from

Conversation

jdforsythe
Copy link

Add option to console transport to use console.log/error instead
of writing to process.stdout/stderr.

Fixes issues like: microsoft/vscode#19750

Add option to console transport to use console.log/error instead
of writing to process.stdout/stderr
@atif089
Copy link

atif089 commented Jul 26, 2017

@DrYSG last release has been like 7 months ago and not sure when the next release would be. If you already found another library to replace this I'd love to know.

@indexzero
Copy link
Member

Thank you for your contribution!

Looks like the VSCode folks have fixed this upstream for all logging libraries, going to close this.

I agree with this sentiment on the issue.

@indexzero indexzero closed this Sep 27, 2017
@kletkeman
Copy link

The solution for the launch configuration:

"outputCapture": "std",

works perfectly! Thanks to anyone and everyone who made that happen ... I have been tortured by that for two days.

@baybal
Copy link

baybal commented Aug 20, 2019

@indexzero well, I don't. The thing is even if VSCode itself does monkeypath around this for its own internal use, others don't.

Two solutions are on the table:

  1. This one - let the user decide whether to use OS or V8 console
  2. Separate the console and stdout transports as two fundamentally different things - one passes on inspection protocol data, other don't

@szolnokit
Copy link
Contributor

Added a "forceConsole" option, to force use "console.log"

0757afe

@wbt
Copy link
Contributor

wbt commented Feb 6, 2023

The linked commit is in #2276 for better cross-referencing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants