From bdbd6aa4ddaff7c93774ef6f7c455f363f42d805 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Wed, 3 Apr 2019 19:19:53 +0200 Subject: [PATCH] Add a logger for the N52 class (dataminer). --- .../smartgears/templates/logback.xml.j2 | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/smartgears/smartgears/templates/logback.xml.j2 b/smartgears/smartgears/templates/logback.xml.j2 index 4ffc1ff4..e66cc745 100644 --- a/smartgears/smartgears/templates/logback.xml.j2 +++ b/smartgears/smartgears/templates/logback.xml.j2 @@ -91,6 +91,32 @@ + + + {{ smartgears_log_dir }}/n52/n52.log + true + + %date [%thread] %-5level %logger{0}: %msg%n + +{% if smartgears_log_use_timesize_appender %} + + {{ smartgears_log_dir }}/n52/n52.%d{yyyy-MM-dd}.%i.log + {{ smartgears_dataanalysis_log_max_history }} + {{ smartgears_log_max_file_size }} + {{ smartgears_log_total_file_cap }} + +{% else %} + + {{ smartgears_log_max_file_size }} + {{ smartgears_log_dir }}/n52/n52.%d{yyyy-MM-dd}.log + {{ smartgears_dataanalysis_log_max_history }} + +{% endif %} + + + + + {% endif %} {% if smartgears_appender_list is defined %}