Change name of log file (".log") in RCP [message #1679949] |
Mon, 16 March 2015 16:44  |
Eclipse User |
|
|
|
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);
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04919 seconds