Save RCP based Application's forced generated trace logs to a file

夙愿已清 提交于 2019-12-13 02:55:56

问题


I have a RCP application. I'm starting it with target set to "SomeApplication.exe" -debug -data >trace.log.

I need to store all trace logging in trace.log log file. So I have added following options to config.ini

org.eclipse.osgi/debug/loader=true

org.eclipse.osgi/trace/classLoading=true

I cannot save the logs as the classes are loaded during the application start up. I can see the logs on the CMD window as I have added the -debug. Is there any way to save the trace logs to a specified file?

I have option to save the trace using the 'General > Tracing' page in the 'Preferences', but it is not helping because every run I need to re-check the Enable tracing check-box.

来源:https://stackoverflow.com/questions/59051981/save-rcp-based-applications-forced-generated-trace-logs-to-a-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!