summaryrefslogtreecommitdiffstats
path: root/src/main/resources
diff options
context:
space:
mode:
authorVijay Venkatesh Kumar <vv770d@att.com>2019-06-21 20:50:07 +0000
committerGerrit Code Review <gerrit@onap.org>2019-06-21 20:50:07 +0000
commit80b11e8899cd74c70703f35c14bb8b4b2c7e7d52 (patch)
tree53b774f3d8b8d9f79fd414ae9112e4c55ff21867 /src/main/resources
parent639686e01af925f2be3bd0d3cd187be7df0b2cf8 (diff)
parent57c7c88b199fd10945aa2e7c7e08231dc0f15d4a (diff)
Merge "No available docker logs"
Diffstat (limited to 'src/main/resources')
-rw-r--r--src/main/resources/log4j2.xml152
1 files changed, 152 insertions, 0 deletions
diff --git a/src/main/resources/log4j2.xml b/src/main/resources/log4j2.xml
new file mode 100644
index 00000000..649441d7
--- /dev/null
+++ b/src/main/resources/log4j2.xml
@@ -0,0 +1,152 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<Configuration status="INFO">
+
+ <Appenders>
+
+ <Console name="CONSOLE" target="SYSTEM_OUT" >
+ <LevelRangeFilter maxLevel="INFO" minLevel="ERROR"/>
+ <PatternLayout
+ pattern="%d{${LOG_DATEFORMAT_PATTERN:-yyyy-MM-dd HH:mm:ss.SSS}} %highlight{${LOG_LEVEL_PATTERN:-%5p}}{FATAL=red blink, ERROR=red, WARN=yellow bold, INFO=green, DEBUG=green bold, TRACE=blue} %style{${sys:PID}}{magenta} [%15.15t] %style{%-40.40C{1.}}{cyan} : %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}"/>
+ </Console>
+
+ <RollingFile fileName="logs/collector.log" filePattern="logs/collector-%d{yyyy-MM-dd}-%i.log" name="ROL_CONSOLE">
+ <LevelRangeFilter maxLevel="INFO" minLevel="ERROR"/>
+ <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss} %-5p %m%n"/>
+ <Policies>
+ <SizeBasedTriggeringPolicy size="64 MB"/>
+ </Policies>
+ <DefaultRolloverStrategy max="10"/>
+ </RollingFile>
+
+ <RollingFile fileName="logs/input.log" filePattern="logs/input-%d{yyyy-MM-dd}-%i.log" name="IFILE">
+ <LevelRangeFilter maxLevel="INFO" minLevel="INFO"/>
+ <PatternLayout pattern="[%d{ISO8601}][%-5p][%-10t][%-5c]%m%n"/>
+ <Policies>
+ <SizeBasedTriggeringPolicy size="32 MB"/>
+ </Policies>
+ <DefaultRolloverStrategy max="10"/>
+ </RollingFile>
+
+ <RollingFile fileName="logs/output.log" filePattern="logs/output-%d{yyyy-MM-dd}-%i.log" name="OFILE">
+ <LevelRangeFilter maxLevel="INFO" minLevel="INFO"/>
+ <PatternLayout pattern="[%d{ISO8601}][%-5p][%-10t][%-5c]%m%n"/>
+ <Policies>
+ <SizeBasedTriggeringPolicy size="32 MB"/>
+ </Policies>
+ <DefaultRolloverStrategy max="10"/>
+ </RollingFile>
+
+ <RollingFile fileName="logs/error.log" filePattern="logs/error-%d{yyyy-MM-dd}-%i.log" name="EFILE">
+ <LevelRangeFilter maxLevel="INFO" minLevel="INFO"/>
+ <PatternLayout pattern="[%d{ISO8601}][%-5p][%-10t][%-5c]%m%n"/>
+ <Policies>
+ <SizeBasedTriggeringPolicy size="64 MB"/>
+ </Policies>
+ <DefaultRolloverStrategy max="10"/>
+ </RollingFile>
+
+ <RollingFile fileName="logs/eelf/audit.log" filePattern="logs/eelf/audit-%d{yyyy-MM-dd}-%i.log" name="EELF_AUDIT">
+ <LevelRangeFilter maxLevel="DEBUG" minLevel="INFO"/>
+ <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss} %-5p %m%n"/>
+ <Policies>
+ <SizeBasedTriggeringPolicy size="64 MB"/>
+ </Policies>
+ <DefaultRolloverStrategy max="20"/>
+ </RollingFile>
+
+ <RollingFile fileName="logs/eelf/metric.log" filePattern="logs/eelf/metric-%d{yyyy-MM-dd}-%i.log" name="EELF_METRIC">
+ <LevelRangeFilter maxLevel="INFO" minLevel="INFO"/>
+ <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss} %-5p %m%n"/>
+ <Policies>
+ <SizeBasedTriggeringPolicy size="64 MB"/>
+ </Policies>
+ <DefaultRolloverStrategy max="20"/>
+ </RollingFile>
+
+
+ <RollingFile fileName="logs/eelf/error.log" filePattern="logs/eelf/error-%d{yyyy-MM-dd}-%i.log" name="EELF_ERROR">
+ <LevelRangeFilter maxLevel="WARN" minLevel="WARN"/>
+ <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss} %-5p %m%n"/>
+ <Policies>
+ <SizeBasedTriggeringPolicy size="64 MB"/>
+ </Policies>
+ <DefaultRolloverStrategy max="20"/>
+ </RollingFile>
+
+
+ <RollingFile fileName="logs/eelf/debug.log" filePattern="logs/eelf/debug-%d{yyyy-MM-dd}-%i.log" name="EELF_DEBUG">
+ <LevelRangeFilter maxLevel="DEBUG" minLevel="DEBUG"/>
+ <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss} %-5p %m%n"/>
+ <Policies>
+ <SizeBasedTriggeringPolicy size="64 MB"/>
+ </Policies>
+ <DefaultRolloverStrategy max="20"/>
+ </RollingFile>
+
+ </Appenders>
+
+ <Loggers>
+
+ <Logger additivity="false" level="info" name="org.onap.dcae.common.input">
+ <AppenderRef ref="IFILE"/>
+ </Logger>
+
+ <Logger additivity="false" level="info" name="org.onap.dcae.common.output">
+ <AppenderRef ref="CONSOLE"/>
+ <AppenderRef ref="OFILE"/>
+ </Logger>
+
+ <Logger additivity="false" level="debug" name="org.onap.dcae.common.error">
+ <AppenderRef ref="EFILE"/>
+ <AppenderRef ref="CONSOLE"/>
+ <AppenderRef ref="EELF_ERROR"/>
+ </Logger>
+
+ <!--NOT USED-->
+ <Logger additivity="false" level="info" name="com.att.ecomp.audit">
+ <AppenderRef ref="CONSOLE"/>
+ <AppenderRef ref="EELF_AUDIT"/>
+ </Logger>
+
+ <Logger additivity="false" level="info" name="com.att.ecomp.metrics">
+ <AppenderRef ref="EELF_METRIC"/>
+ </Logger>
+
+ <!--NOT USED-->
+ <Logger additivity="false" level="info" name="com.att.ecomp.error">
+ <AppenderRef ref="EELF_ERROR"/>
+ </Logger>
+
+ <!--NOT USED-->
+ <Logger additivity="false" level="info" name="com.att.ecomp.debug">
+ <AppenderRef ref="EELF_DEBUG"/>
+ </Logger>
+
+ <!--NOT USED-->
+ <Logger additivity="false" level="debug" name="org.onap.dcae.common.EventPublisher">
+ <AppenderRef ref="CONSOLE"/>
+ </Logger>
+
+ <!--NOT USED-->
+ <Logger additivity="false" level="info" name="com.att.nsa.apiClient.http.HttpClient">
+ <AppenderRef ref="CONSOLE"/>
+ </Logger>
+
+ <!--NOT USED-->
+ <Logger additivity="false" level="info"
+ name="com.att.nsa.cambria.client.impl.CambriaSimplerBatchPublisher">
+ <AppenderRef ref="CONSOLE"/>
+ </Logger>
+
+ <Root additivity="false" level="debug">
+ <AppenderRef ref="CONSOLE"/>
+ <AppenderRef ref="ROL_CONSOLE"/>
+ <AppenderRef ref="EELF_AUDIT"/>
+ <AppenderRef ref="EELF_DEBUG"/>
+ <AppenderRef ref="EELF_ERROR"/>
+ </Root>
+
+ </Loggers>
+
+</Configuration>