Skip to content

Commit

Permalink
Update logback.xml and config
Browse files Browse the repository at this point in the history
  • Loading branch information
matsbov committed May 17, 2024
1 parent 0bed649 commit 5d0a408
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 18 deletions.
23 changes: 6 additions & 17 deletions sbdi/data/config/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,18 @@

<conversionRule conversionWord="clr" converterClass="org.springframework.boot.logging.logback.ColorConverter" />
<conversionRule conversionWord="wex" converterClass="org.springframework.boot.logging.logback.WhitespaceThrowableProxyConverter" />
<logger name="org.hibernate" level="ERROR"/>
<logger name="org.grails.config" level="ERROR"/>

<appender name="STDOUT" class="ch.qos.logback.core.rolling.RollingFileAppender">
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
<fileNamePattern>/data/specieslist-webapp/logs/specieslist-webapp.%d{yyyy-MM-dd}.%i.log.gz</fileNamePattern>
<!-- each archived file, size max 10MB -->
<maxFileSize>10MB</maxFileSize>
<!-- total size of all archive files, if total size > 5GB, it will delete old archived file -->
<totalSizeCap>5GB</totalSizeCap>
<!-- 60 days to keep -->
<maxHistory>60</maxHistory>
</rollingPolicy>

<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<charset>UTF-8</charset>
<pattern>'%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(%5p) %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n%wex'</pattern>
<pattern>%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(%5p) %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n%wex</pattern>
</encoder>
</appender>

<logger name="au.org.ala.biocollect" level="INFO">
<appender-ref ref="STDOUT" />
</logger>

<root level="error">
<root level="INFO">
<appender-ref ref="STDOUT" />
</root>
</configuration>
</configuration>
2 changes: 1 addition & 1 deletion sbdi/data/config/specieslist-webapp-config.properties
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ skin.orgNameShort=SBDI
bieService.baseURL=https://species.biodiversitydata.se/ws
bie.download=/data/bie-staging/species-list
bie.nameIndexLocation=/data/lucene/namematching
namematching.serviceURL=https://namematching-ws.ala.org.au
namematching.serviceURL=https://namematching.biodiversitydata.se
logger.baseURL=https://logger.biodiversitydata.se/service
logger.baseUrl=https://logger.biodiversitydata.se/service

Expand Down

0 comments on commit 5d0a408

Please sign in to comment.