increase the dataminer log history to 90 days by default

This commit is contained in:
Andrea Dell'Amico 2017-11-29 15:46:10 +01:00
parent 72920a9848
commit 78b6d12e5c
2 changed files with 3 additions and 2 deletions

View File

@ -56,6 +56,7 @@ smartgears_service_name: 'tomcat-instance-{{ smartgears_http_port }}'
smartgears_log_use_timesize_appender: True
smartgears_loglevel: WARN
smartgears_dataanalysis_loglevel: DEBUG
smartgears_dataanalysis_log_max_history: 90
smartgears_log_max_history: 30
smartgears_log_max_file_size: 10MB
smartgears_log_total_file_cap: 2GB

View File

@ -72,7 +72,7 @@
{% if smartgears_log_use_timesize_appender %}
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
<fileNamePattern>{{ smartgears_log_dir }}/analysis.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<maxHistory>{{ smartgears_log_max_history }}</maxHistory>
<maxHistory>{{ smartgears_dataanalysis_log_max_history }}</maxHistory>
<maxFileSize>{{ smartgears_log_max_file_size }}</maxFileSize>
<totalSizeCap>{{ smartgears_log_total_file_cap }}</totalSizeCap>
</rollingPolicy>
@ -80,7 +80,7 @@
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<maxFileSize>{{ smartgears_log_max_file_size }}</maxFileSize>
<fileNamePattern>{{ smartgears_log_dir }}/analysis.%d{yyyy-MM-dd}.log</fileNamePattern>
<maxHistory>{{ smartgears_log_max_history }}</maxHistory>
<maxHistory>{{ smartgears_dataanalysis_log_max_history }}</maxHistory>
</rollingPolicy>
{% endif %}
</appender>