diff --git a/smartgears/smartgears/tasks/smartgears-app.yml b/smartgears/smartgears/tasks/smartgears-app.yml
index 257a2b11..e8316e0b 100644
--- a/smartgears/smartgears/tasks/smartgears-app.yml
+++ b/smartgears/smartgears/tasks/smartgears-app.yml
@@ -80,11 +80,11 @@
- name: Get the real smartgears version from the exploded distribution filename
shell: /bin/ls -1 {{ smartgears_downloads_dir }} | grep smartgears-distribution | grep -v tar.gz | sed -e 's/smartgears-distribution-//g'
register: smartgears_real_version
- tags: [ 'smartgears', 'smartgears_distribution', 'tomcat' ]
+ tags: [ 'smartgears', 'smartgears_distribution', 'tomcat', 'smartgears_conf' ]
- name: Set the real smartgears distribution version
set_fact: smartgears_real_distribution_version="{{ smartgears_real_version.stdout }}"
- tags: [ 'smartgears', 'smartgears_distribution', 'tomcat' ]
+ tags: [ 'smartgears', 'smartgears_distribution', 'tomcat', 'smartgears_conf' ]
- name: Create the directory where we put the smartgears configuration snippets
become: True
diff --git a/smartgears/smartgears/templates/logback.xml.j2 b/smartgears/smartgears/templates/logback.xml.j2
index f6c0a545..48b171f4 100644
--- a/smartgears/smartgears/templates/logback.xml.j2
+++ b/smartgears/smartgears/templates/logback.xml.j2
@@ -90,6 +90,28 @@
{% endif %}
+{% if smartgears_appender_list is defined %}
+{% for obj in smartgears_appender_list %}
+
+ /home/gcube/tomcat/logs/{{ obj.appender_file_name }}.log
+ true
+
+ %d{HH:mm:ss.SSS} [%thread] %-5level %logger{0}: %msg%n
+
+
+ /home/gcube/tomcat/logs/{{ obj.appender_file_name | default('custom') }}.%d{yyyy-MM-dd}.%i.log
+ {{ obj.appender_maxHistory | default('30') }}
+ {{ obj.appender_maxFileSize | default('10MB') }}
+ {{ obj.appender_totalSizeCap | default('2GB') }}
+
+
+
+
+
+{% endfor %}
+{% endif %}
+
+