diff options
author | Dan Timoney <dtimoney@att.com> | 2018-10-04 20:18:59 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-10-04 20:18:59 +0000 |
commit | 3ece4fafb62aa7dd1b68d78a17bacc822d1b02df (patch) | |
tree | aa2380f34819257047af7d033cdcb4c461f15eee /configbackuprestore/vnfconfigbackupservice/src/main/resources/log4j2.xml | |
parent | 8e3ee6e07618c9afac5eb2aa1bd8faa3949b6e56 (diff) | |
parent | dd065f3dbb499762a39bddf0afe794e9b4aa67ec (diff) |
Merge "Refactor code and fix some ui issues"
Former-commit-id: 2b3b4a626929aac57c8da20ff7980bb16e37b73b
Diffstat (limited to 'configbackuprestore/vnfconfigbackupservice/src/main/resources/log4j2.xml')
-rw-r--r-- | configbackuprestore/vnfconfigbackupservice/src/main/resources/log4j2.xml | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/configbackuprestore/vnfconfigbackupservice/src/main/resources/log4j2.xml b/configbackuprestore/vnfconfigbackupservice/src/main/resources/log4j2.xml new file mode 100644 index 00000000..e443b529 --- /dev/null +++ b/configbackuprestore/vnfconfigbackupservice/src/main/resources/log4j2.xml @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="UTF-8"?> +<Configuration status="WARN" monitorInterval="30"> + <Properties> + <Property name="LOG_PATTERN"> + %d{yyyy-MM-dd HH:mm:ss.SSS} %5p ${hostName} --- [%15.15t] %-40.40c{1.} : %m%n%ex + </Property> + </Properties> + <Appenders> + + <!-- <Console name="ConsoleAppender" target="SYSTEM_OUT" follow="true"> + <PatternLayout pattern="${LOG_PATTERN}"/> + </Console> --> + + <!-- Rolling File Appender --> + <RollingFile name="FileAppender" fileName="logs/sdnc_report_api.log" + filePattern="logs/sdnc_report_api-%d{yyyy-MM-dd}-%i.log"> + <PatternLayout> + <Pattern>${LOG_PATTERN}</Pattern> + </PatternLayout> + <Policies> + <SizeBasedTriggeringPolicy size="10MB" /> + </Policies> + <DefaultRolloverStrategy max="10"/> + </RollingFile> + + </Appenders> + + <Loggers> + <Logger name="com.onap.sdnc.reports" level="debug" additivity="false"> + <AppenderRef ref="FileAppender" /> + </Logger> + + <Root level="debug"> + <!-- <AppenderRef ref="ConsoleAppender" /> --> + <AppenderRef ref="FileAppender"/> + </Root> + </Loggers> +</Configuration>
\ No newline at end of file |