From: Filip Krzywka Date: Wed, 19 Sep 2018 06:53:42 +0000 (+0200) Subject: Align to logging requirements X-Git-Tag: 1.0.0~11 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=43cfe3ec689add6483fa44a772d5cd903f6704ec;p=dcaegen2%2Fcollectors%2Fhv-ves.git Align to logging requirements - Pattern does not contain MDCs and Markers as HV-VES will not provide that kind of trace context in Casablanca release. - Pattern does not contain replace(...){} parts from most recent version of guideline as these parts significantly decrease logs readability in current format Change-Id: I03a9cef8b7f92208244a65c4846f280d560e037a Issue-ID: DCAEGEN2-799 Signed-off-by: Filip Krzywka --- diff --git a/hv-collector-main/src/main/resources/logback.xml b/hv-collector-main/src/main/resources/logback.xml index a0235e17..c76ff21a 100644 --- a/hv-collector-main/src/main/resources/logback.xml +++ b/hv-collector-main/src/main/resources/logback.xml @@ -1,39 +1,49 @@ - - + + - - - - %d{yyyy-MM-dd'T'HH:mm:ss.SSSXXX,UTC} %highlight(%-5level) [%-40.40logger{10}] - %msg%n - - - + + + + + + + + ${FILE_LOG_PATTERN} + + - - ${FILE_LOG_PATTERN} - - ${LOG_FILE} - - ${LOG_FILE}.%d{yyyy-MM-dd}.log - 50MB - 30 - 10GB - + class="ch.qos.logback.core.rolling.RollingFileAppender"> + + ${FILE_LOG_PATTERN} + + ${LOG_PATH}/${LOG_FILENAME}.log + + ${ARCHIVE}/${LOG_FILENAME}.%d{yyyy-MM-dd}.%i.log.gz + 50MB + 30 + 10GB + - - - - - + + + + + - - - + + + \ No newline at end of file