Fix the smartgears logback configuration settings. See https://support.d4science.org/issues/9708
This commit is contained in:
parent
3fd380f557
commit
b55c69f005
|
@ -54,7 +54,10 @@ smartgears_http_port: 9000
|
|||
smartgears_service_name: 'tomcat-instance-{{ smartgears_http_port }}'
|
||||
|
||||
smartgears_log_use_timesize_appender: True
|
||||
smartgears_logback_conf_autoscan: 'true'
|
||||
smartgears_logback_conf_debug: 'false'
|
||||
smartgears_loglevel: WARN
|
||||
smartgears_accounting_log_level: ERROR
|
||||
smartgears_dataanalysis_loglevel: DEBUG
|
||||
smartgears_dataanalysis_log_max_history: 90
|
||||
smartgears_log_max_history: 30
|
||||
|
|
|
@ -114,7 +114,6 @@
|
|||
become_user: '{{ smartgears_user }}'
|
||||
template: src=logback.xml.j2 dest={{ smartgears_instance_path }}/lib/logback.xml
|
||||
when: smartgears_logback_template
|
||||
notify: Restart smartgears
|
||||
tags: [ 'smartgears', 'smartgears_distribution', 'smartgears_conf', 'tomcat', 'logback_conf' ]
|
||||
|
||||
- name: Remove some wrong symbolic links created by the install/upgrade script
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<configuration>
|
||||
<configuration scan="{{ smartgears_logback_conf_autoscan }}" debug="{{ smartgears_logback_conf_debug }}">
|
||||
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
<file>{{ smartgears_log_dir }}/ghn.log</file>
|
||||
<append>true</append>
|
||||
|
@ -114,24 +114,20 @@
|
|||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
|
||||
<logger name="org.gcube.data.publishing" level="FATAL">
|
||||
<logger name="org.gcube.data.publishing" level="{{ smartgears_accounting_log_level }}">
|
||||
<appender-ref ref="ACCOUNT_FILE" />
|
||||
</logger>
|
||||
<logger name="org.gcube.documentstore" level="FATAL">
|
||||
<logger name="org.gcube.documentstore" level="{{ smartgears_accounting_log_level }}">
|
||||
<appender-ref ref="ACCOUNT_FILE" />
|
||||
</logger>
|
||||
|
||||
<logger name="org.gcube.smartgears.handlers.application.request"
|
||||
level="INFO">
|
||||
<logger name="org.gcube.smartgears.handlers.application.request" level="INFO">
|
||||
<appender-ref ref="ACCESS_FILE" />
|
||||
</logger>
|
||||
|
||||
<logger name="org.gcube" level="{{ smartgears_loglevel }}" />
|
||||
<logger name="org.gcube.smartgears" level="{{ smartgears_loglevel }}" />
|
||||
<logger name="org.gcube.common.events" level="{{ smartgears_loglevel }}" />
|
||||
<logger name="org.gcube.data.publishing" level="FATAL" />
|
||||
<logger name="org.gcube.documentstore" level="FATAL" />
|
||||
|
||||
<root level="{{ smartgears_loglevel }}">
|
||||
<appender-ref ref="FILE" />
|
||||
|
|
Loading…
Reference in New Issue