问题
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