forked from ISTI-ansible-roles/ansible-roles
increase the dataminer log history to 90 days by default
This commit is contained in:
parent
72920a9848
commit
78b6d12e5c
|
@ -56,6 +56,7 @@ smartgears_service_name: 'tomcat-instance-{{ smartgears_http_port }}'
|
||||||
smartgears_log_use_timesize_appender: True
|
smartgears_log_use_timesize_appender: True
|
||||||
smartgears_loglevel: WARN
|
smartgears_loglevel: WARN
|
||||||
smartgears_dataanalysis_loglevel: DEBUG
|
smartgears_dataanalysis_loglevel: DEBUG
|
||||||
|
smartgears_dataanalysis_log_max_history: 90
|
||||||
smartgears_log_max_history: 30
|
smartgears_log_max_history: 30
|
||||||
smartgears_log_max_file_size: 10MB
|
smartgears_log_max_file_size: 10MB
|
||||||
smartgears_log_total_file_cap: 2GB
|
smartgears_log_total_file_cap: 2GB
|
||||||
|
|
|
@ -72,7 +72,7 @@
|
||||||
{% if smartgears_log_use_timesize_appender %}
|
{% if smartgears_log_use_timesize_appender %}
|
||||||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
||||||
<fileNamePattern>{{ smartgears_log_dir }}/analysis.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
|
<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>
|
<maxFileSize>{{ smartgears_log_max_file_size }}</maxFileSize>
|
||||||
<totalSizeCap>{{ smartgears_log_total_file_cap }}</totalSizeCap>
|
<totalSizeCap>{{ smartgears_log_total_file_cap }}</totalSizeCap>
|
||||||
</rollingPolicy>
|
</rollingPolicy>
|
||||||
|
@ -80,7 +80,7 @@
|
||||||
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
||||||
<maxFileSize>{{ smartgears_log_max_file_size }}</maxFileSize>
|
<maxFileSize>{{ smartgears_log_max_file_size }}</maxFileSize>
|
||||||
<fileNamePattern>{{ smartgears_log_dir }}/analysis.%d{yyyy-MM-dd}.log</fileNamePattern>
|
<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>
|
</rollingPolicy>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</appender>
|
</appender>
|
||||||
|
|
Loading…
Reference in New Issue