1
0
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:
Mattia Bertorello 2019-07-23 11:49:51 +02:00 committed by Cristian Maglie
parent a80fd4af06
commit 824567d763
2 changed files with 4 additions and 3 deletions

View File

@ -8,8 +8,8 @@
</Console> </Console>
<!-- Rolling File Appender --> <!-- Rolling File Appender -->
<RollingFile name="RollingFile" fileName="${sys:log4j.saveDirectory}/logs/application.log" <RollingFile name="RollingFile" fileName="${sys:log4j.dir}/logs/application.log"
filePattern="${sys:log4j.saveDirectory}/logs/application-%d{MM-dd-yyyy}-%i.log.gz" filePattern="${sys:log4j.dir}/logs/application-%d{MM-dd-yyyy}-%i.log.gz"
ignoreExceptions="false"> ignoreExceptions="false">
<PatternLayout> <PatternLayout>
<Pattern>%d{yyyy-MM-dd'T'HH:mm:ss.SSSXXX}{UTC} %p %c{1.}:%L [%t] %m%n</Pattern> <Pattern>%d{yyyy-MM-dd'T'HH:mm:ss.SSSXXX}{UTC} %p %c{1.}:%L [%t] %m%n</Pattern>

View File

@ -208,7 +208,8 @@ public class Base {
BaseNoGui.initPortableFolder(); BaseNoGui.initPortableFolder();
// This configure the logs root folder // 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 // Look for a possible "--preferences-file" parameter and load preferences
BaseNoGui.initParameters(args); BaseNoGui.initParameters(args);