blob: 3a35b76f7b09fa8e6da85df00b1778cc73448ff9 [file] [log] [blame]
Ravi Geda375666c2018-09-30 21:14:41 +01001<?xml version="1.0" encoding="UTF-8"?>
2<configuration>
3
4 <property name="LOGS" value="./logs/AAF-FPS" />
5 <property name="FILEPREFIX" value="application" />
6
7 <appender name="Console"
8 class="ch.qos.logback.core.ConsoleAppender">
9 <layout class="ch.qos.logback.classic.PatternLayout">
10 <Pattern>
11 %d{ISO8601} %-5level [%t] %C{1.}: %msg%n%throwable
12 </Pattern>
13 </layout>
14 </appender>
15
16 <appender name="RollingFile"
17 class="ch.qos.logback.core.rolling.RollingFileAppender">
18 <file>${LOGS}/${FILEPREFIX}.log</file>
19 <encoder
20 class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
21 <Pattern>%d %p %C{1.} [%t] %m%n</Pattern>
22 </encoder>
23
24 <rollingPolicy
25 class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
26 <!-- rollover daily and when the file reaches 10 MegaBytes -->
27 <fileNamePattern>${LOGS}/archived/${FILEPREFIX}-%d{yyyy-MM-dd}.%i.log
28 </fileNamePattern>
29 <timeBasedFileNamingAndTriggeringPolicy
30 class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
31 <maxFileSize>10MB</maxFileSize>
32 </timeBasedFileNamingAndTriggeringPolicy>
33 </rollingPolicy>
34 </appender>
35
36 <!-- LOG everything at INFO level -->
37 <root level="info">
38 <appender-ref ref="RollingFile" />
39 <appender-ref ref="Console" />
40 </root>
41
42 <!-- LOG "com.baeldung*" at TRACE level -->
43 <logger name="org.onap.aaf.fproxy" level="trace" additivity="false">
44 <appender-ref ref="RollingFile" />
45 <appender-ref ref="Console" />
46 </logger>
47
48</configuration>