Skip to content

Diagnostic logging no longer contains json output #1188

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

Closed
corbob opened this issue Feb 11, 2020 · 3 comments
Closed

Diagnostic logging no longer contains json output #1188

corbob opened this issue Feb 11, 2020 · 3 comments
Labels
Area-Logging Issue-Enhancement A feature request (enhancement).

Comments

@corbob
Copy link
Contributor

corbob commented Feb 11, 2020

I believe this is the result of the change to OmniSharp. In the preview extension, the EditorServices log no longer contains the json that is being passed around, just that a message is being passed. The legacy version however still contains the json.

Preview version:
image

Legacy version:
image

Was it intentional to remove these messages from the EditorServices log? Or was this inadvertent? When originally working out the code for Command Explorer, I made heavy use of the Diagnostic logging to ensure the messages were coming back as I expected them.

And the even bigger question: regardless of if the removal was intentional or not, are there plans to add such a level of logging back?

@ghost ghost added the Needs: Triage Maintainer attention needed! label Feb 11, 2020
@rjmholt
Copy link
Contributor

rjmholt commented Feb 12, 2020

Yeah, this is known.

Basically VSCode has a logging solution, which is to send it log messages. Omnisharp does that and they show up in the Output window. We'd like to log the messages too, but that can't include the log messages, otherwise we'll be trying to send log messages logging the log messages, and log messages about those, and so on...

The solution in my mind lies with enabling a log sink in Omnisharp that can log all messages except log messages, but that's a change we need to happen in Omnisharp, since we don't control the message send/serialisation layer.

@ghost ghost added the Needs: Maintainer Attention Maintainer attention needed! label Feb 12, 2020
@rjmholt rjmholt added Area-Logging Issue-Enhancement A feature request (enhancement). and removed Needs: Maintainer Attention Maintainer attention needed! Needs: Triage Maintainer attention needed! labels Feb 12, 2020
@corbob
Copy link
Contributor Author

corbob commented Feb 12, 2020

It would seem that turning on verbose trace logging is showing the json in the Output pane:
image

I'll leave it up to you if you want to keep the issue open. It would probably be helpful to have this logged to a file, but it sounds like that might be an Omnisharp thing to setup.

@ghost ghost added the Needs: Maintainer Attention Maintainer attention needed! label Feb 12, 2020
@TylerLeonhardt TylerLeonhardt removed the Needs: Maintainer Attention Maintainer attention needed! label Feb 12, 2020
@andyleejordan
Copy link
Member

andyleejordan commented Nov 15, 2024

Logging got revamped and supports the native LSP messages and VS Code's log output now. #2200

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Logging Issue-Enhancement A feature request (enhancement).
Projects
Status: Done
Development

No branches or pull requests

4 participants