How to open stdout show log #2271
-
??? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
A lot of this should be made convenient depending on the client you use. Certain clients may create an option like "Open Java Logs" that open all available logs related to JDT-LS. However, I'm assuming you're working with JDT-LS and want to expose such logs for your own client. When you start JDT-LS, there is an option passed, So if you build the eclipse.jdt.ls repo, and then :
You can also log the standard output/error streams of the JDT-LS process since some libraries that comprise the server may log there (as opposed to the server log location mentioned above). To do so, simply add the following system property to the commandline : |
Beta Was this translation helpful? Give feedback.
A lot of this should be made convenient depending on the client you use. Certain clients may create an option like "Open Java Logs" that open all available logs related to JDT-LS. However, I'm assuming you're working with JDT-LS and want to expose such logs for your own client.
When you start JDT-LS, there is an option passed,
-data
. You can see this option, in the helper script we ship, at https://github.com/eclipse/eclipse.jdt.ls/blob/26d5d9f3ba2581327f46adfcb6d9a1ee8ace2154/org.eclipse.jdt.ls.product/scripts/jdtls.py#L101 . This represents the location at which JDT-LS will store relevant information related to the project(s) it will handle. The server will log to the file.metadata/.log
…