Skip to content
Browse files

setting error.log.path as full path to file

log file is curators-workbench/workbench.log on windows
Mac log is still in curators-workspace/.metadata/.log
  • Loading branch information...
1 parent d384c60 commit f7646f3cd062a3c3f51b1220b044598c6b0c4257 @gregjan gregjan committed Jan 23, 2014
View
2 eclipse-repository/bundleJREs/Workbench
@@ -2,6 +2,7 @@
#
DIR=`dirname $0`/../
+LOG_PATH=`cd ~; pwd`/workbench.log
export JAVA_HOME=$DIR/Resources/jre${jre.version}.jre/Contents/Home
LAUNCHER_JAR=$( find $DIR/Resources/plugins -name org.eclipse.equinox.launcher_*.jar | tail -n1)
@@ -15,4 +16,5 @@ $JAVA_HOME/bin/java \
-Dosgi.requiredJavaVersion=1.7 \
-Dosgi.instance.area=@user.home/curators-workspace \
-Djargon.debug=0 \
+-Derror.log.path=$LOG_PATH \
-jar $LAUNCHER_JAR
View
2 eclipse-repository/workbench.product
@@ -43,7 +43,7 @@ Meg Tuomala
<launcherArgs>
<programArgs>-consoleLog -data @user.home/curators-workspace</programArgs>
- <vmArgs>-Dosgi.requiredJavaVersion=1.7 -XX:MaxPermSize=256m -Xms256m -Xmx1024m -Djargon.debug=0</vmArgs>
+ <vmArgs>-Dosgi.requiredJavaVersion=1.7 -XX:MaxPermSize=256m -Xms256m -Xmx1024m -Djargon.debug=0 -Derror.log.path=workbench.log</vmArgs>
</launcherArgs>
<windowImages/>
View
2 workbench_feature/rootfiles/configurations/services/org.ops4j.pax.logging.properties
@@ -1,6 +1,6 @@
log4j.rootLogger=INFO, A1
log4j.appender.A1=org.apache.log4j.FileAppender
-log4j.appender.A1.File=workbench.log
+log4j.appender.A1.File=${error.log.path}
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%d{yyyy/MM/dd HH:mm:ss,SSS} [%t] %-5p %c %x - %m%n
log4j.logger.unc.lib=DEBUG

0 comments on commit f7646f3

Please sign in to comment.
Something went wrong with that request. Please try again.