Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Change name of log file (".log") in RCP
Change name of log file (".log") in RCP [message #1679949] Mon, 16 March 2015 16:44 Go to next message
Eclipse UserFriend
I have a RCP (based on e4) and I want to change the name of the log file. Why? When asking users to email the log file, it is not helpful if it is hidden (on Mac, on Linux).

Is there a way to change the name of the log file?

The "osgi.logfile" environment variable does not help, because the DataArea (see code below) "overrides" the value.

In my debugging session I got here:
org.eclipse.core.internal.runtime.DataArea
/* package */static final String F_LOG = ".log";
[...]
IPath logPath = location.append(F_META_AREA).append(F_LOG);
try {
	Activator activator = Activator.getDefault();
	if (activator != null) {
		FrameworkLog log = activator.getFrameworkLog();
		if (log != null)
			log.setFile(logPath.toFile(), true);
Re: Change name of log file (".log") in RCP [message #1719832 is a reply to message #1679949] Tue, 12 January 2016 08:24 Go to previous messageGo to next message
Eclipse UserFriend
Hi Andreas,

I face the same issue: I cannot rename the .log.
Did you find a solution ?

Thankfs for sharing.


Re: Change name of log file (".log") in RCP [message #1719839 is a reply to message #1719832] Tue, 12 January 2016 09:41 Go to previous messageGo to next message
Eclipse UserFriend
Nope.
Re: Change name of log file (".log") in RCP [message #1719872 is a reply to message #1719839] Tue, 12 January 2016 13:45 Go to previous messageGo to next message
Eclipse UserFriend
Sounds like bug 256502. There's a workaround on the bug report, but please take a stab at solving the problem!
Re: Change name of log file (".log") in RCP [message #1719930 is a reply to message #1719872] Wed, 13 January 2016 05:07 Go to previous message
Eclipse UserFriend
Thanks for the workaround.
Previous Topic:How to get current project in custom "OpenDeclarationAction"?
Next Topic:history of a deleted resource
Goto Forum:
  


Current Time: Thu Mar 20 13:17:51 EDT 2025

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

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

Back to the top