blob: dff2f8b65e96292ceae976fb954ed4e1e67a8d8a [file] [log] [blame]
emartina8e48cf2019-02-08 18:22:27 +00001<configuration>
2 <property name="outputFilename" value="pm-mapper_output"/>
3 <property name="logPath" value="/var/log/ONAP/dcaegen2/services/pm-mapper"/>
4 <property name="archivePath" value="${logPath}/archive"/>
5 <property name="maxFileSize" value="50MB"/>
6 <property name="maxHistory" value="30"/>
7 <property name="totalSizeCap" value="10GB"/>
8 <property name="p_tim" value="%d{&quot;yyyy-MM-dd'T'HH:mm:ss.SSSXXX&quot;, UTC}"/>
9 <property name="p_lvl" value="%level"/>
10 <property name="p_log" value="%logger"/>
11 <property name="p_mdc" value="%replace(%replace(%mdc){'\t','\\\\t'}){'\n', '\\\\n'}"/>
12 <property name="p_msg" value="%replace(%replace(%msg){'\t', '\\\\t'}){'\n','\\\\n'}"/>
13 <property name="p_exc" value="%replace(%replace(%rootException){'\t', '\\\\t'}){'\n','\\\\n'}"/>
14 <property name="p_mak" value="%replace(%replace(%marker){'\t', '\\\\t'}){'\n','\\\\n'}"/>
15 <property name="p_thr" value="%thread"/>
16 <property name="pattern" value="%nopexception${p_tim}\t${p_thr}\t${p_lvl}\t${p_log}\t${p_mdc}\t${p_msg}\t${p_exc}\t${p_mak}\t%n"/>
17
dfarrellydc280ce2019-04-08 10:24:10 +000018 <variable name="logLevel" value="${LOG_LEVEL:-DEBUG}"/>
emartina8e48cf2019-02-08 18:22:27 +000019
20 <logger name="org.mockserver" level="${mockserver.logLevel:-OFF}"/>
21
22 <appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
23 <encoder>
24 <pattern>${pattern}</pattern>
25 </encoder>
26 </appender>
27
28 <appender name="ROLLING-FILE" class="ch.qos.logback.core.FileAppender">
29 <file>${logPath}/${outputFilename}.log</file>
30 <encoder>
31 <pattern>${pattern}</pattern>
32 </encoder>
33 <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
34 <FileNamePattern>${archivePath}/${outputFilename}.%d{yyyy-MM-dd}.%i.log.zip</FileNamePattern>
35 <MaxFileSize>${maxFileSize}</MaxFileSize>
36 <MaxHistory>${maxHistory}</MaxHistory>
37 <TotalSizeCap>${totalSizeCap}</TotalSizeCap>
38 </rollingPolicy>
39 </appender>
40
41 <root level="${logLevel}" additivity="false">
42 <appender-ref ref="CONSOLE" />
43 <appender-ref ref="ROLLING-FILE" />
44 </root>
45
46</configuration>