File tree Expand file tree Collapse file tree 2 files changed +32
-1
lines changed Expand file tree Collapse file tree 2 files changed +32
-1
lines changed Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <Configuration status =" warn" name =" Arduino" packages =" cc.arduino" >
3
+ <Appenders >
4
+
5
+ <!-- Console Appender -->
6
+ <Console name =" Console" target =" SYSTEM_ERR" >
7
+ <PatternLayout pattern =" %d{yyyy-MM-dd'T'HH:mm:ss.SSSXXX}{UTC} %p %c{1.} [%t] %m%n" />
8
+ </Console >
9
+
10
+ <!-- Rolling File Appender -->
11
+ <RollingFile name =" RollingFile" fileName =" ${sys:log4j.saveDirectory}/logs/application.log"
12
+ filePattern =" ${sys:log4j.saveDirectory}/logs/application-%d{MM-dd-yyyy}-%i.log.gz"
13
+ ignoreExceptions =" false" >
14
+ <PatternLayout >
15
+ <Pattern >%d{yyyy-MM-dd'T'HH:mm:ss.SSSXXX}{UTC} %p %c{1.} [%t] %m%n</Pattern >
16
+ </PatternLayout >
17
+ <Policies >
18
+ <SizeBasedTriggeringPolicy size =" 50 MB" />
19
+ </Policies >
20
+ <DefaultRolloverStrategy max =" 20" />
21
+ </RollingFile >
22
+ </Appenders >
23
+ <Loggers >
24
+ <Root level =" debug" >
25
+ <AppenderRef ref =" Console" level =" info" />
26
+ <AppenderRef ref =" RollingFile" />
27
+ </Root >
28
+ </Loggers >
29
+ </Configuration >
Original file line number Diff line number Diff line change @@ -207,6 +207,8 @@ public Base(String[] args) throws Exception {
207
207
BaseNoGui .getPlatform ().init ();
208
208
209
209
BaseNoGui .initPortableFolder ();
210
+ // This configure the logs root folder
211
+ System .setProperty ("log4j.saveDirectory" , BaseNoGui .getSettingsFolder ().getAbsolutePath ());
210
212
211
213
// Look for a possible "--preferences-file" parameter and load preferences
212
214
BaseNoGui .initParameters (args );
@@ -287,7 +289,7 @@ public Base(String[] args) throws Exception {
287
289
288
290
final GPGDetachedSignatureVerifier gpgDetachedSignatureVerifier = new GPGDetachedSignatureVerifier ();
289
291
contributionInstaller = new ContributionInstaller (BaseNoGui .getPlatform (), gpgDetachedSignatureVerifier );
290
- libraryInstaller = new LibraryInstaller (BaseNoGui .getPlatform ());
292
+ libraryInstaller = new LibraryInstaller (BaseNoGui .getPlatform (), gpgDetachedSignatureVerifier );
291
293
292
294
parser .parseArgumentsPhase2 ();
293
295
You can’t perform that action at this time.
0 commit comments