Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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).

0 votes


Accepted answer

Permanent link

 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

0 votes


One other answer

Permanent link

The server log file, I believe, is

C:\RTCXXDev\workspaces\Dev1\runtime-New_configuration.metadata\.log assuming the Eclipse workspace running Jetty is C:\RTCXXDev\workspaces\Dev1\WS

It was pretty easy to find using a simple file search.

0 votes

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. 


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.

 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

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,927
× 72
× 8

Question asked: Jan 07 '17, 8:32 a.m.

Question was seen: 6,451 times

Last updated: Jan 15 '19, 1:47 a.m.

Confirmation Cancel Confirm