-
Notifications
You must be signed in to change notification settings - Fork 354
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
Send log messages to client #85
Comments
We can maybe use a custom logback appender https://logback.qos.ch/manual/appenders.html to take care of this. We can then configure two appenders in logback.xml instead of only ConsoleAppender. For starters, we can probably get away with a global mutable |
Why is this labeled "tech debt" btw? For me this is an lsp feature! |
My mistake! |
I was thinking the same about the custom appender: It would be nice to do this without changing how we log right now. |
LSP supports sending log messages to the client, using
connection.logMessage
.Those messages are then handled by the client in different ways, for instance VSCode displays them in the
Scalameta
output channel.I think it would be more convenient than outputting to a file like we do now, or at least we could have both, so that one can access those logs more conveniently without leaving the editor.
The text was updated successfully, but these errors were encountered: