From ea3c6f75e3289a667ca8887dc0b176843517060c Mon Sep 17 00:00:00 2001 From: Filip Krzywka Date: Wed, 12 Dec 2018 08:11:30 +0100 Subject: Align logback configuration - followed current logging guidelines in regard of format - in simulators currently very simple (minimalistic) pattern will be used as they do not contain any MDCs or Markers - in main logbacks included three patterns varying on verbosity and human-readability (for production full logging, ie. ONAP_LOG_PATTERN, should be used) - removed logback-test from domain module as it was not enabled anyway (no dependency on logback) and we should never have need for logging in this module - made logback-tests consistent (using simple pattern) except in component-tests, where it might be useful to have more verbose output (including MDCs etc.) Change-Id: Ifd851d12a77d5303b836a25c0e168e18a3a804e9 Issue-ID: DCAEGEN2-1026 Signed-off-by: Filip Krzywka --- .../src/main/resources/logback.xml | 68 ++++++++++++++++++---- 1 file changed, 57 insertions(+), 11 deletions(-) (limited to 'sources/hv-collector-main/src') diff --git a/sources/hv-collector-main/src/main/resources/logback.xml b/sources/hv-collector-main/src/main/resources/logback.xml index 58d2cb6a..c88b8aa8 100644 --- a/sources/hv-collector-main/src/main/resources/logback.xml +++ b/sources/hv-collector-main/src/main/resources/logback.xml @@ -1,4 +1,23 @@ + @@ -8,26 +27,53 @@ - + + + + + + + + + + + + - ${FILE_LOG_PATTERN} + ${READABLE_LOG_PATTERN} - ${FILE_LOG_PATTERN} + ${ONAP_LOG_PATTERN} ${LOG_PATH}/${LOG_FILENAME}.log -- cgit 1.2.3-korg