mirror of
https://github.com/arduino/Arduino.git
synced 2024-11-29 10:24:12 +01:00
Change variable name where store log directory to "log4j.dir"
This commit is contained in:
parent
a80fd4af06
commit
824567d763
@ -8,8 +8,8 @@
|
||||
</Console>
|
||||
|
||||
<!-- Rolling File Appender -->
|
||||
<RollingFile name="RollingFile" fileName="${sys:log4j.saveDirectory}/logs/application.log"
|
||||
filePattern="${sys:log4j.saveDirectory}/logs/application-%d{MM-dd-yyyy}-%i.log.gz"
|
||||
<RollingFile name="RollingFile" fileName="${sys:log4j.dir}/logs/application.log"
|
||||
filePattern="${sys:log4j.dir}/logs/application-%d{MM-dd-yyyy}-%i.log.gz"
|
||||
ignoreExceptions="false">
|
||||
<PatternLayout>
|
||||
<Pattern>%d{yyyy-MM-dd'T'HH:mm:ss.SSSXXX}{UTC} %p %c{1.}:%L [%t] %m%n</Pattern>
|
||||
|
@ -208,7 +208,8 @@ public class Base {
|
||||
|
||||
BaseNoGui.initPortableFolder();
|
||||
// This configure the logs root folder
|
||||
System.setProperty("log4j.saveDirectory", BaseNoGui.getSettingsFolder().getAbsolutePath());
|
||||
System.out.println("Set log4j store directory " + BaseNoGui.getSettingsFolder().getAbsolutePath());
|
||||
System.setProperty("log4j.dir", BaseNoGui.getSettingsFolder().getAbsolutePath());
|
||||
|
||||
// Look for a possible "--preferences-file" parameter and load preferences
|
||||
BaseNoGui.initParameters(args);
|
||||
|
Loading…
Reference in New Issue
Block a user