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"/> |
Shane Daniel | b36bfcc | 2018-06-26 20:30:18 +0000 | [diff] [blame] | 12 | <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> |
Shane Daniel | b36bfcc | 2018-06-26 20:30:18 +0000 | [diff] [blame] | 13 | <encoder> |
Leigh, Phillip (pl876u) | 58af736 | 2018-12-21 12:40:55 -0500 | [diff] [blame] | 14 | <pattern>${pattern}</pattern> |
Shane Daniel | b36bfcc | 2018-06-26 20:30:18 +0000 | [diff] [blame] | 15 | </encoder> |
| 16 | </appender> |
Leigh, Phillip (pl876u) | 58af736 | 2018-12-21 12:40:55 -0500 | [diff] [blame] | 17 | <appender name="FILE" class="ch.qos.logback.core.FileAppender"> |
| 18 | <file>/opt/app/logs/EELF/output.log</file> |
Shane Daniel | b36bfcc | 2018-06-26 20:30:18 +0000 | [diff] [blame] | 19 | <encoder> |
Leigh, Phillip (pl876u) | 58af736 | 2018-12-21 12:40:55 -0500 | [diff] [blame] | 20 | <pattern>${pattern}</pattern> |
Shane Daniel | b36bfcc | 2018-06-26 20:30:18 +0000 | [diff] [blame] | 21 | </encoder> |
| 22 | </appender> |
Leigh, Phillip (pl876u) | 58af736 | 2018-12-21 12:40:55 -0500 | [diff] [blame] | 23 | <logger level="INFO" name="org.onap.logging.ref.slf4j" additivity="false"> |
Shane Daniel | b36bfcc | 2018-06-26 20:30:18 +0000 | [diff] [blame] | 24 | <appender-ref ref="STDOUT" /> |
Leigh, Phillip (pl876u) | 58af736 | 2018-12-21 12:40:55 -0500 | [diff] [blame] | 25 | <appender-ref ref="FILE" /> |
| 26 | </logger> |
| 27 | <root level="info"> |
| 28 | <appender-ref ref="STDOUT" /> |
| 29 | <appender-ref ref="FILE" /> |
Shane Daniel | b36bfcc | 2018-06-26 20:30:18 +0000 | [diff] [blame] | 30 | </root> |
Shane Daniel | b36bfcc | 2018-06-26 20:30:18 +0000 | [diff] [blame] | 31 | </configuration> |