NonRT-RIC A1 Northbound API
[nonrtric.git] / sdnc-a1-controller / oam / configbackuprestore / vnfconfigbackupservice / src / main / resources / log4j2.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <Configuration status="WARN" monitorInterval="30">
3     <Properties>
4         <Property name="LOG_PATTERN">
5             %d{yyyy-MM-dd HH:mm:ss.SSS} %5p ${hostName} --- [%15.15t] %-40.40c{1.} : %m%n%ex
6         </Property>
7     </Properties>
8     <Appenders>
9         
10         <!-- <Console name="ConsoleAppender" target="SYSTEM_OUT" follow="true">
11             <PatternLayout pattern="${LOG_PATTERN}"/>
12         </Console> -->
13         
14                 <!-- Rolling File Appender -->
15         <RollingFile name="FileAppender" fileName="logs/sdnc_report_api.log" 
16                      filePattern="logs/sdnc_report_api-%d{yyyy-MM-dd}-%i.log">
17             <PatternLayout>
18                 <Pattern>${LOG_PATTERN}</Pattern>
19             </PatternLayout>
20             <Policies>
21                 <SizeBasedTriggeringPolicy size="10MB" />
22             </Policies>
23             <DefaultRolloverStrategy max="10"/>
24         </RollingFile>
25         
26     </Appenders>
27     
28     <Loggers>
29         <Logger name="com.onap.sdnc.reports" level="debug" additivity="false">
30             <AppenderRef ref="FileAppender" />
31         </Logger>
32  
33                 <Root level="debug">
34                     <!-- <AppenderRef ref="ConsoleAppender" /> -->
35                     <AppenderRef ref="FileAppender"/>
36            </Root>
37     </Loggers>
38 </Configuration>