question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Logger doesn't work anymore

See original GitHub issue

From the graphql-language-service-server package (at least, could be shared further).

It used to work before the TS rewrite but now logger emits nothing when connected to say VSCode extension now.

process.stderr.write seems to work though.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:16 (12 by maintainers)

github_iconTop GitHub Comments

2reactions
acaocommented, Mar 14, 2020

@divyenduz and I had a session and tried to track down what changed in graphql-languagesrver and client from 3.5.1. My guess is that the language server no longer writes to stderr as it did before, and somewhere in vscode-jsonrpc this changed over major versions. we decided manually writing to stderr in the Logger._log() will fix it for now, but it would be great to know why this regression occurred

1reaction
divyenduzcommented, Mar 14, 2020

This one seems to work because in graphql-language-service-* it is a process.stderr.write

process.stderr.write(`Definition not found for GraphQL type ${name}`);

Want to pair on this real quick?

In 10-20 minutes maybe?

Read more comments on GitHub >

github_iconTop Results From Across the Web

logging - Python Logger not working - Stack Overflow
The problem is that the logger's level is still set to the default. So the logger discards the message before it even gets...
Read more >
Logger doesn't seem to work with errors #46 - GitHub
I'm not sure if this is a new thing because I thought it worked before, but it seems whenever I try and log/warn/error...
Read more >
Python Logging: A Stroll Through the Source Code
In this step-by-step tutorial, you'll learn about how the Python logging package is designed from an OOP perspective. You'll walk line by line...
Read more >
Logging Problems in IBM WebSphere Application Server
Log4J log /trace is not routed to WebSphere Application Server log/trace files, and Log4J loggers don't show up in the WebSphere Application ...
Read more >
No logging anymore in Service Center - OutSystems
No logging anymore in Service Center ... since a few weeks we don't have any logging within service center. ... Also daily history...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found