diff options
author | JulienBe <julien.bertozzi@intl.att.com> | 2020-09-03 17:09:46 +0200 |
---|---|---|
committer | Xue Gao <xg353y@intl.att.com> | 2020-09-07 12:18:23 +0000 |
commit | 61663b92910868a4de51c6fe9a7cef7da96da7e9 (patch) | |
tree | 86085699100a83f9de49375b635596601b55502d /integration-tests/src/test/resources/logback.xml | |
parent | bcee4648917b2442f51a75639708bad4cd0fe4ad (diff) |
Optimize Build
Optimize the log output
Issue-ID: SDC-3232
Signed-off-by: JulienBe <julien.bertozzi@intl.att.com>
Change-Id: I50cfb7119b1e9087d3e2db56a81fe47df4ad6254
Diffstat (limited to 'integration-tests/src/test/resources/logback.xml')
-rw-r--r-- | integration-tests/src/test/resources/logback.xml | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/integration-tests/src/test/resources/logback.xml b/integration-tests/src/test/resources/logback.xml new file mode 100644 index 0000000000..559b69534a --- /dev/null +++ b/integration-tests/src/test/resources/logback.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?> +<configuration> + <property scope="system" name="ECOMP-component-name" value="SDC"/> + <property scope="system" name="ECOMP-subcomponent-name" value="SDC-TOOL"/> + <property name="default-log-pattern" + value="%d{yyyy-MM-dd'T'HH:mm:ss.SSSXXX}|%X{uuid}|%X{serviceInstanceID}|%thread||${ECOMP-subcomponent-name}|%X{userId}|%level|%X{alarmSeverity}|%X{localAddr}|${beFqdn}|%X{remoteAddr}|%logger{35}|%X{timer}|ActivityType=<%M>, Desc=<%msg>%n"/> + + + <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> + <encoder> + <pattern>${default-log-pattern}</pattern> + </encoder> + </appender> + + <appender name="DEBUG_ROLLING" + class="ch.qos.logback.core.rolling.RollingFileAppender"> + <file>${HOME}/asdctool/logs/${ECOMP-component-name}/${ECOMP-subcomponent-name}/debug.log</file> + + + <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> + <fileNamePattern>${HOME}/asdctool/logs/${ECOMP-component-name}/${ECOMP-subcomponent-name}/debug.log.%i + </fileNamePattern> + <minIndex>1</minIndex> + <maxIndex>10</maxIndex> + </rollingPolicy> + + <triggeringPolicy + class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> + <maxFileSize>20MB</maxFileSize> + </triggeringPolicy> + <encoder> + <pattern>${default-log-pattern}</pattern> + </encoder> + </appender> + + <root level="INFO"> + <appender-ref ref="DEBUG_ROLLING"/> + <appender-ref ref="STDOUT"/> + </root> + + <logger name="org.openecomp.sdc" level="INFO"/> + <logger name="org.openecomp.sdc.asdctool.migration" level="INFO"/> + +</configuration> |