diff --git a/smartgears/smartgears/defaults/main.yml b/smartgears/smartgears/defaults/main.yml index ea281daf..c50fa608 100644 --- a/smartgears/smartgears/defaults/main.yml +++ b/smartgears/smartgears/defaults/main.yml @@ -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 diff --git a/smartgears/smartgears/templates/logback.xml.j2 b/smartgears/smartgears/templates/logback.xml.j2 index 9f822160..7e479331 100644 --- a/smartgears/smartgears/templates/logback.xml.j2 +++ b/smartgears/smartgears/templates/logback.xml.j2 @@ -72,7 +72,7 @@ {% if smartgears_log_use_timesize_appender %} {{ smartgears_log_dir }}/analysis.%d{yyyy-MM-dd}.%i.log - {{ smartgears_log_max_history }} + {{ smartgears_dataanalysis_log_max_history }} {{ smartgears_log_max_file_size }} {{ smartgears_log_total_file_cap }} @@ -80,7 +80,7 @@ {{ smartgears_log_max_file_size }} {{ smartgears_log_dir }}/analysis.%d{yyyy-MM-dd}.log - {{ smartgears_log_max_history }} + {{ smartgears_dataanalysis_log_max_history }} {% endif %}