From f6f2fc3883d31a2d680490d313370c002793be41 Mon Sep 17 00:00:00 2001 From: Dale Schultz Date: Fri, 21 Oct 2011 03:26:39 +0000 Subject: [PATCH] Fixed up log4j.properties so it saves the rr_system.log in the /{user.home}/.RomRaider/ directory. git-svn-id: https://svn2.assembla.com/svn/romraider/trunk@365 38686702-15cf-42e4-a595-3071df8bf5ea --- log4j.properties | 2 +- .../ecu/ui/swing/menubar/action/LoggerDebugLocationAction.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/log4j.properties b/log4j.properties index 600c3e2b..ef447f69 100644 --- a/log4j.properties +++ b/log4j.properties @@ -5,7 +5,7 @@ log4j.appender.stdout.layout=org.apache.log4j.PatternLayout log4j.appender.stdout.layout.ConversionPattern=%-5r %-5p [%t] - %m%n log4j.appender.file=org.apache.log4j.RollingFileAppender -log4j.appender.file.File=rr_system.log +log4j.appender.file.File=${user.home}/.RomRaider/rr_system.log log4j.appender.file.MaxBackupIndex=1 log4j.appender.file.layout=org.apache.log4j.PatternLayout log4j.appender.file.layout.ConversionPattern=%-5r %-5p [%t] - %m%n diff --git a/src/com/romraider/logger/ecu/ui/swing/menubar/action/LoggerDebugLocationAction.java b/src/com/romraider/logger/ecu/ui/swing/menubar/action/LoggerDebugLocationAction.java index a934aad5..a436a1b1 100644 --- a/src/com/romraider/logger/ecu/ui/swing/menubar/action/LoggerDebugLocationAction.java +++ b/src/com/romraider/logger/ecu/ui/swing/menubar/action/LoggerDebugLocationAction.java @@ -41,6 +41,6 @@ public final class LoggerDebugLocationAction extends AbstractAction { } private void openLogFileLocationDialog() throws Exception { - Desktop.getDesktop().open(new File(System.getProperty("user.dir"))); + Desktop.getDesktop().open(new File(System.getProperty("user.home") + "/.RomRaider")); } }