forked from ISTI-ansible-roles/ansible-roles
Add a logger for the N52 class (dataminer).
This commit is contained in:
parent
ebf0a4db54
commit
bdbd6aa4dd
|
@ -91,6 +91,32 @@
|
|||
<logger name="AnalysisLogger" level="{{ smartgears_dataanalysis_loglevel }}">
|
||||
<appender-ref ref="ANALYSIS" />
|
||||
</logger>
|
||||
|
||||
<appender name="N52" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
<file>{{ smartgears_log_dir }}/n52/n52.log</file>
|
||||
<append>true</append>
|
||||
<encoder>
|
||||
<pattern>%date [%thread] %-5level %logger{0}: %msg%n</pattern>
|
||||
</encoder>
|
||||
{% if smartgears_log_use_timesize_appender %}
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
||||
<fileNamePattern>{{ smartgears_log_dir }}/n52/n52.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
|
||||
<maxHistory>{{ smartgears_dataanalysis_log_max_history }}</maxHistory>
|
||||
<maxFileSize>{{ smartgears_log_max_file_size }}</maxFileSize>
|
||||
<totalSizeCap>{{ smartgears_log_total_file_cap }}</totalSizeCap>
|
||||
</rollingPolicy>
|
||||
{% else %}
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
||||
<maxFileSize>{{ smartgears_log_max_file_size }}</maxFileSize>
|
||||
<fileNamePattern>{{ smartgears_log_dir }}/n52/n52.%d{yyyy-MM-dd}.log</fileNamePattern>
|
||||
<maxHistory>{{ smartgears_dataanalysis_log_max_history }}</maxHistory>
|
||||
</rollingPolicy>
|
||||
{% endif %}
|
||||
</appender>
|
||||
|
||||
<logger name="org.n52.wps" level="{{ smartgears_dataanalysis_loglevel }}">
|
||||
<appender-ref ref="N52" />
|
||||
</logger>
|
||||
{% endif %}
|
||||
|
||||
{% if smartgears_appender_list is defined %}
|
||||
|
|
Loading…
Reference in New Issue