Skip to content
This repository was archived by the owner on May 5, 2021. It is now read-only.

Commit f1dc9da

Browse files
committed
Add logback config
1 parent ac05abf commit f1dc9da

2 files changed

Lines changed: 26 additions & 0 deletions

File tree

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@ These instructions are for [IntelliJ IDEA Community edition](https://www.jetbrai
9292

9393
- Make sure you set Java 8 as the project's selected SDK
9494

95+
### Logging
96+
97+
Copy src/main/resources/logback-release.xml to src/main/resources/logback.xml. This conf will be used when launching Aggregate CLI.
98+
9599
## Contributing code
96100

97101
Any and all contributions to the project are welcome.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<configuration>
2+
<appender name="ROLLINGFILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
3+
<file>aggregate-cli.log</file>
4+
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
5+
<fileNamePattern>aggregate-cli.%d{yyyy-MM-dd}.log</fileNamePattern>
6+
<maxHistory>30</maxHistory>
7+
<totalSizeCap>100MB</totalSizeCap>
8+
</rollingPolicy>
9+
<encoder>
10+
<pattern>%d [%thread] %-5level %logger{36} - %msg%n</pattern>
11+
</encoder>
12+
</appender>
13+
14+
<logger name="org.opendatakit" level="info"/>
15+
<logger name="org.apache.http" level="error"/>
16+
<logger name="org.apache.http.impl.conn.PoolingHttpClientConnectionManager" level="error"/>
17+
<logger name="org.apache.http.impl.conn.BasicHttpClientConnectionManager" level="error"/>
18+
19+
<root level="info">
20+
<appender-ref ref="ROLLINGFILE"/>
21+
</root>
22+
</configuration>

0 commit comments

Comments
 (0)