-
Notifications
You must be signed in to change notification settings - Fork 11
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
Lemminx extension logging can't be enabled with current Lemminx Eclipse (and IDEA?) integration #138
Comments
Just updating with a follow-up from the eclipse-wildwebdeveloper/wildwebdeveloper#974 discussion... there seems to be a PR eclipse-wildwebdeveloper/wildwebdeveloper#1040 intended to improve logging. |
I look a look at the PR in the last comment. It seems to give us a way to enable every log message at INFO level or higher, at least in Eclipse. If that's good enough then it'd seem the TODO would be to promote everything to at least INFO trace level (the FINE would never get logged). I don't think that's going to be good enough long term but we can work through that with Lemminx, WWD, etc. It'd be a step forwards in Eclipse at least. |
@scottkurz I was looking through our logging and I only see us references to Updated: Just found |
That seems like a good useful step. There's been some work and issues in the other projects but not sure there's a need to keep this current issue open beyond that. |
Though we have java.util.logging instrumentation in the lemminx-liberty extension, there doesn't seem to be a way to enable it via Liberty Tools Eclipse integration.
Some of the reason is discussed here: eclipse-wildwebdeveloper/wildwebdeveloper#974.
I was able to prototype a couple workarounds in the near term:
IDEA 1
Logger.getLogger("").addHandler(new ConsoleHandler());
io.openliberty.tools.lcls.logging.proxy=true
. Why "proxy"? Well, as it turns out, the Eclipse WWD integration will pass through properties with "proxy" in the name from the IDE config (e.g. eclipse.ini) to the XML LSP JVM. So that would "work".Note this could be noisy, I haven't tried it. On the other hand, I'm not sure we've got the perfect balance as-is...e.g. the log message
"Using cached Liberty schema file located at: " + serverXSDFile.toString())
gets logged an awful lot. Not sure how much time's been spent getting the message levels right.IDEA 2
System.err.println(msg)
(we can't just use System.out since Lemminx sets that to a NoOp stream).The 2nd ends up a good bit noisier since we're opening this up to all of Lemminx, e.g. the m2e in Eclipse gives quite a few stack traces.
The text was updated successfully, but these errors were encountered: