Is there a unified logging approach? #1581
-
|
Hey there, I noticed that GLSP-Client has both logger.log and console.log, whereas the server uses logger.log. Do you plan on unifying the different logging methods on the client? Currently I am setting up winston in order to capture logs (and save to file) from the front-end side of our application and was hoping to be able to override the glsp-client and glsp-vscode-integration logging in order to capture everything together. Cheers |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
Hi @jmenzies12, thanks for raising this. Unifying the logging methods on the client and using the sprotty Logger where possible definitely makes sense. I will put this on our road map. Let's quickly summarize the necessary changes:
|
Beta Was this translation helpful? Give feedback.
-
|
I have created #1583 to track this |
Beta Was this translation helpful? Give feedback.
Hi @jmenzies12,
thanks for raising this. Unifying the logging methods on the client and using the sprotty Logger where possible definitely makes sense. I will put this on our road map.
Let's quickly summarize the necessary changes:
Make sure that we consistently use the provide Logger interface over console log