Where is the .log file when using the Jetty based Environment while developing plugins?
While developing plugins I'm using Jetty based RTC extending environment in RTC 6.0.2. This was created using the RTC extending workshop setup. While testing where are the console messages written to when working on work items on the web.
While working on work items using the RTC client I have access to console(by adding Breakpoint) and the .log of the Eclipse workspace under .metadata folder.
But I need access to the .log file for debugging Javascript messages (generated by console.log output ) when running the same from Web(https://localhost:7443/jazz/web/projects/ProjectXXX).
|
Accepted answer
Late reply to this, it's probably no longer relevant to the thread owner, but may help others.
By default, the setup for Jetty will not log to a file, but only to console.
For this particular setup, you can find the log4j properties file for Jetty at ${workspace_loc}/RTC Extension Workshop Configuration - Server/conf/jazz/log4j.properties and add an appender for your output as described here:
Ralph Schoon selected this answer as the correct answer
|
One other answer
Ralph Schoon (63.6k●3●36●46)
| answered Jan 09 '17, 2:06 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER edited Jan 09 '17, 2:10 a.m. The server log file, I believe, is
Comments Dear Ralph,
I don't have a runtime_newConfiguration folder in my Dev1 folder.
What I have is
C:\RTCXXDev\workspaces\Dev1\WS
C:\RTCXXDev\workspaces\Dev1\server
C:\RTCXXDev\workspaces\Dev1\junit-team-server-tests-workspace
This last folder also has a .metadata and a .log file but nothing is logged here.
I think I'm missing something minor here. A simple search of the file system didn't reveal anything useful.
Ralph Schoon
commented Jan 09 '17, 7:40 a.m.
| edited Jan 09 '17, 7:44 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Wrong Answer from me deleted
Sorry, my bad. The workspace C:\RTCXXDev\workspaces\Dev1\runtime-New_configuration.metadata\ is generated by the RTC Eclipse debug client.
You can try to look if C:\RTC602Dev\workspaces\Dev2\WS.metadata.plugins\org.eclipse.pde.core[RTCExt] Jetty RTC Server dev\workspace.metadata\.log is what you are looking for. I have never had that requirement.
anup Gaur
commented Jan 09 '17, 8:05 a.m.
Dear Ralph,
Thanks for all the effort. I did reach C:\RTC602Dev\workspaces\Dev1\WS.metadata.plugins\org.eclipse.pde.core[RTCExt] Jetty RTC Server dev
But again no workspace or .log inside.
I will keep looking, thanks again.
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.