blob: 0a4b616453d23f3997ecccd0abaddf6e0ccce102 [file] [log] [blame]
Leigh, Phillip (pl876u)58af7362018-12-21 12:40:55 -05001<configuration >
2 <property name="p_tim" value="%d{&quot;yyyy-MM-dd'T'HH:mm:ss.SSSXXX&quot;, UTC}"/>
3 <property name="p_lvl" value="%level"/>
4 <property name="p_log" value="%logger"/>
5 <property name="p_mdc" value="%replace(%replace(%mdc){'\t','\\\\t'}){'\n', '\\\\n'}"/>
6 <property name="p_msg" value="%replace(%replace(%msg){'\t', '\\\\t'}){'\n','\\\\n'}"/>
7 <property name="p_exc" value="%replace(%replace(%rootException){'\t', '\\\\t'}){'\n','\\\\n'}"/>
8 <!-- tabs -->
9 <property name="p_mak" value="%replace(%replace(%marker){'\t', '\\\\t'}){'\n','\\\\n'}"/>
10 <property name="p_thr" value="%thread"/>
11 <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"/>
Shane Danielb36bfcc2018-06-26 20:30:18 +000012 <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
Shane Danielb36bfcc2018-06-26 20:30:18 +000013 <encoder>
Leigh, Phillip (pl876u)58af7362018-12-21 12:40:55 -050014 <pattern>${pattern}</pattern>
Shane Danielb36bfcc2018-06-26 20:30:18 +000015 </encoder>
16 </appender>
Leigh, Phillip (pl876u)58af7362018-12-21 12:40:55 -050017 <appender name="FILE" class="ch.qos.logback.core.FileAppender">
18 <file>/opt/app/logs/EELF/output.log</file>
Shane Danielb36bfcc2018-06-26 20:30:18 +000019 <encoder>
Leigh, Phillip (pl876u)58af7362018-12-21 12:40:55 -050020 <pattern>${pattern}</pattern>
Shane Danielb36bfcc2018-06-26 20:30:18 +000021 </encoder>
22 </appender>
Leigh, Phillip (pl876u)58af7362018-12-21 12:40:55 -050023 <logger level="INFO" name="org.onap.logging.ref.slf4j" additivity="false">
Shane Danielb36bfcc2018-06-26 20:30:18 +000024 <appender-ref ref="STDOUT" />
Leigh, Phillip (pl876u)58af7362018-12-21 12:40:55 -050025 <appender-ref ref="FILE" />
26 </logger>
27 <root level="info">
28 <appender-ref ref="STDOUT" />
29 <appender-ref ref="FILE" />
Shane Danielb36bfcc2018-06-26 20:30:18 +000030 </root>
Shane Danielb36bfcc2018-06-26 20:30:18 +000031</configuration>