Search code examples
loggingosgisettingsdirectoryequinox

Equinox separate log folder


Is there any way to define the output folder for the equinox log files?

If you check this Link it is possible to define the configuration folder. But I didn't find a way to change the folder for the log output. ( Note: Configuration and Log-Folder are different folders. )

One workaround is

java -jar org.eclipse.osgi.jar -consoleLog > ../var/log/osgi.log

But I really don't like this because I can't use these parameter ( eclipse.log.backup.max eclipse.log.size.max ) for it.

Any idea how to solve this?


Solution

  • try to use

    -Dosgi.logfile=log file path

    property

    e.g.:

    java -Dosgi.logfile=/var/log/equinox.log -jar org.eclipse.osgi_3.9.0.v20130529-1710.jar