Leigh, Phillip (pl876u) | 58af736 | 2018-12-21 12:40:55 -0500 | [diff] [blame^] | 1 | <configuration > |
| 2 | <property name="p_tim" value="%d{"yyyy-MM-dd'T'HH:mm:ss.SSSXXX", 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"/> |
| 12 | <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> |
| 13 | <encoder> |
| 14 | <pattern>${pattern}</pattern> |
| 15 | </encoder> |
| 16 | </appender> |
| 17 | <appender name="FILE" class="ch.qos.logback.core.FileAppender"> |
| 18 | <file>/opt/app/logs/EELF/output.log</file> |
| 19 | <encoder> |
| 20 | <pattern>${pattern}</pattern> |
| 21 | </encoder> |
| 22 | </appender> |
| 23 | <logger level="INFO" name="org.onap.logging.ref.slf4j" additivity="false"> |
| 24 | <appender-ref ref="STDOUT" /> |
| 25 | <appender-ref ref="FILE" /> |
| 26 | </logger> |
| 27 | <root level="info"> |
| 28 | <appender-ref ref="STDOUT" /> |
| 29 | <appender-ref ref="FILE" /> |
| 30 | </root> |
| 31 | </configuration> |