Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » No UI No Log?
No UI No Log? [message #658344] Mon, 07 March 2011 20:13 Go to next message
Eclipse UserFriend
I created a headless version of an RCP application (stripped all ui-related code and bundles and set -Declipse.ignoreApp=true -Dosgi.noShutdown=true). This works fine, but I no longer get a .log file (nor is a .metadata directory created) when running the application, and in consequence can't see what's going on...

Any ideas what I could have removed that killed the logging? Do I need to call PlatformUI.createAndRunWorkbench(...) to initialize logging?
Re: No UI No Log? [message #658452 is a reply to message #658344] Tue, 08 March 2011 10:09 Go to previous messageGo to next message
Eclipse UserFriend
On 03/07/2011 08:13 PM, Eric Jain wrote:
> Any ideas what I could have removed that killed the logging? Do I need
> to call PlatformUI.createAndRunWorkbench(...) to initialize logging?


AFAIK that logging needs a data location (workspace), sometimes called
the instance area. Without that, it might appear in your
rcpapp/configuration directory if it is writable ... maybe.

-consoleLog will send it to stdout, but AFAIK doesn't write it down.

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Platform_Expression_Framework
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm
Re: No UI No Log? [message #658510 is a reply to message #658452] Tue, 08 March 2011 14:18 Go to previous message
Eclipse UserFriend
Paul Webster wrote on Tue, 08 March 2011 10:09
AFAIK that logging needs a data location (workspace), sometimes called
the instance area. Without that, it might appear in your
rcpapp/configuration directory if it is writable ... maybe.

-consoleLog will send it to stdout, but AFAIK doesn't write it down.


Thanks. Looks like when there is no workbench, the log is written to e.g. @osgi.configuration.area/1299610760169.log rather than .metadata/.log.
Previous Topic:Debug : Step Over doesn't work
Next Topic:Eclipse Platform SDK vs. Eclipse SDK
Goto Forum:
  


Current Time: Thu Jul 10 03:01:02 EDT 2025

Powered by FUDForum. Page generated in 0.11267 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top