File tree 2 files changed +6
-1
lines changed
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -130,6 +130,11 @@ public void printUsage() {
130
130
}
131
131
132
132
static {
133
+ // Initialize log output path with the default value
134
+ if (System .getProperty ("spoon.log.path" ) == null ) {
135
+ System .setProperty ("spoon.log.path" , "${java.io.tmpdir}/spoon-log.log" );
136
+ }
137
+
133
138
jsapSpec = defineArgs ();
134
139
}
135
140
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
7
7
log4j.appender.stdout.layout.ConversionPattern =%d{yyyy-MM-dd HH:mm:ss,SSS} %p %c - %m%n
8
8
9
9
log4j.appender.R =org.apache.log4j.RollingFileAppender
10
- log4j.appender.R.File =${java.io.tmpdir}/ spoon-log .log
10
+ log4j.appender.R.File =${spoon.log.path}
11
11
12
12
log4j.appender.R.MaxFileSize =1000KB
13
13
log4j.appender.R.MaxBackupIndex =3
You can’t perform that action at this time.
0 commit comments