aboutsummaryrefslogtreecommitdiffstats
path: root/etc/logback.xml
diff options
context:
space:
mode:
authorlj1412 <lji@research.att.com>2017-02-14 15:11:01 +0000
committerlj1412 <lji@research.att.com>2017-02-14 15:11:03 +0000
commit0186ef27491b5adcbda1490c4a890a8cdea15443 (patch)
tree10f2f7c7c712084522276c5e17eb6b6f2928d242 /etc/logback.xml
parent3bbdd5a4b772ff094666d8680fdf7b7576c91b52 (diff)
Init dcae.collectors.ves
Change-Id: Ic112f107512ac263431613cfc60f848b854fa84b Signed-off-by: lj1412 <lji@research.att.com>
Diffstat (limited to 'etc/logback.xml')
-rw-r--r--etc/logback.xml127
1 files changed, 127 insertions, 0 deletions
diff --git a/etc/logback.xml b/etc/logback.xml
new file mode 100644
index 0000000..a3c0052
--- /dev/null
+++ b/etc/logback.xml
@@ -0,0 +1,127 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<configuration scan="true">
+
+ <appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
+ <encoder>
+ <pattern>%d [%thread] %-5level %logger{36} - %msg%n</pattern>
+ </encoder>
+ </appender>
+
+ <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
+ <file>./logs/collector.log</file>
+ <encoder>
+ <pattern>%d{yyyy-MMM-dd HH:mm:ss,SSS,GMT+0} [%thread] %-5level %logger{36} - %msg%n</pattern>
+ </encoder>
+ <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
+ <fileNamePattern>./logs/collector.%i.log</fileNamePattern>
+ <minIndex>1</minIndex>
+ <maxIndex>10</maxIndex>
+ </rollingPolicy>
+ <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
+ <maxFileSize>128MB</maxFileSize>
+ </triggeringPolicy>
+ <!--
+ <layout class="org.apache.log4j.PatternLayout">
+ <param name="ConversionPattern" value="[%d{yyyy-MMM-dd HH:mm:ss,SSS}][%-5p][%-10t][%-5c][%4L]%m%n" />
+ </layout>
+ -->
+ </appender>
+
+ <appender name="IFILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
+ <file>./logs/input.log</file>
+ <encoder>
+ <pattern>%d{yyyy-MMM-dd HH:mm:ss,SSS,GMT+0} [%thread] %-5level %logger{36} - %msg%n</pattern>
+ </encoder>
+ <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
+ <fileNamePattern>./logs/input.%i.log</fileNamePattern>
+ <minIndex>1</minIndex>
+ <maxIndex>10</maxIndex>
+ </rollingPolicy>
+ <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
+ <maxFileSize>128MB</maxFileSize>
+ </triggeringPolicy>
+ <!--
+ <layout class="org.apache.log4j.PatternLayout">
+ <param name="ConversionPattern" value="[%d{yyyy-MMM-dd HH:mm:ss,SSS}][%-5p][%-10t][%-5c][%4L]%m%n" />
+ </layout>
+ -->
+ </appender>
+
+ <appender name="OFILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
+ <file>./logs/output.log</file>
+ <encoder>
+ <pattern>%d{yyyy-MMM-dd HH:mm:ss,SSS,GMT+0} [%thread] %-5level %logger{36} - %msg%n</pattern>
+ </encoder>
+ <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
+ <fileNamePattern>./logs/output.%i.log</fileNamePattern>
+ <minIndex>1</minIndex>
+ <maxIndex>10</maxIndex>
+ </rollingPolicy>
+ <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
+ <maxFileSize>128MB</maxFileSize>
+ </triggeringPolicy>
+ <!--
+ <layout class="org.apache.log4j.PatternLayout">
+ <param name="ConversionPattern" value="[%d{yyyy-MMM-dd HH:mm:ss,SSS}][%-5p][%-10t][%-5c][%4L]%m%n" />
+ </layout>
+ -->
+ </appender>
+
+ <appender name="EFILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
+ <file>./logs/error.log</file>
+ <encoder>
+ <pattern>%d{yyyy-MMM-dd HH:mm:ss,SSS,GMT+0} [%thread] %-5level %logger{36} - %msg%n</pattern>
+ </encoder>
+ <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
+ <fileNamePattern>./logs/error.%i.log</fileNamePattern>
+ <minIndex>1</minIndex>
+ <maxIndex>10</maxIndex>
+ </rollingPolicy>
+ <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
+ <maxFileSize>128MB</maxFileSize>
+ </triggeringPolicy>
+ <!--
+ <layout class="org.apache.log4j.PatternLayout">
+ <param name="ConversionPattern" value="[%d{yyyy-MMM-dd HH:mm:ss,SSS}][%-5p][%-10t][%-5c][%4L]%m%n" />
+ </layout>
+ -->
+ </appender>
+ <appender name="ECOMP_ERROR" class="ch.qos.logback.core.rolling.RollingFileAppender">
+ <file>./logs/ecomperror.log</file>
+ <encoder>
+ <pattern>%d{yyyy-MM-dd'T'HH:mm:ss,GMT+0}+00:00|%X{requestId}||%X{serviceInstanceId}|%-10thread|%X{serverName}|%X{serviceName}|%X{instanceUuid}|%level|%X{severity}|%X{serverIpAddress}|%X{server}|%X{ipAddress}|%X{className}|%X{timer}|%msg%n</pattern>
+ </encoder>
+ <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
+ <fileNamePattern>./logs/ecomperror.%i.log</fileNamePattern>
+ <minIndex>1</minIndex>
+ <maxIndex>10</maxIndex>
+ </rollingPolicy>
+ <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
+ <maxFileSize>128MB</maxFileSize>
+ </triggeringPolicy>
+ </appender>
+ <!-- the other 3 ECOMP logs are omitted for this release -->
+
+ <root level="info">
+ <appender-ref ref="FILE" />
+ <appender-ref ref="CONSOLE" />
+
+ <!-- if/when the ECOMP team runs this server...
+ <appender-ref ref="ECOMP_ERROR" />
+ -->
+ </root>
+ <logger name="org.openecomp.dcae.commonFunction.input" additivity="false">
+ <level value="INFO"/>
+ <appender-ref ref="IFILE"/>
+ </logger>
+
+ <logger name="org.openecomp.dcae.commonFunction.output" additivity="false">
+ <level value="INFO"/>
+ <appender-ref ref="OFILE"/>
+ </logger>
+
+ <logger name="org.openecomp.dcae.commonFunction.error" additivity="false">
+ <level value="INFO"/>
+ <appender-ref ref="EFILE"/>
+ </logger>
+</configuration>