Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » No UI No Log?
No UI No Log? [message #658344] Tue, 08 March 2011 01:13 Go to next message
Eric Jain is currently offline Eric JainFriend
Messages: 266
Registered: July 2009
Senior Member
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 15:09 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

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 19:18 Go to previous message
Eric Jain is currently offline Eric JainFriend
Messages: 266
Registered: July 2009
Senior Member
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: Mon Dec 22 00:41:15 GMT 2014

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

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