k.kedron | 456cf4f | 2019-04-30 16:37:54 +0200 | [diff] [blame] | 1 | <!-- Empty Configuration to prevent creating log files by Units Tests (e.g LoggingUtilsTest) ! --> |
sebdet | 5d03e8b | 2020-02-03 20:27:59 +0100 | [diff] [blame] | 2 | <configuration> |
| 3 | <jmxConfigurator /> |
| 4 | <!-- Example evaluator filter applied against console appender --> |
| 5 | <property |
| 6 | name="p_tim" |
| 7 | value="%d{"yyyy-MM-dd'T'HH:mm:ss.SSSXXX", UTC}" /> |
| 8 | <property |
| 9 | name="p_lvl" |
| 10 | value="%level" /> |
| 11 | <property |
| 12 | name="p_log" |
| 13 | value="%logger" /> |
| 14 | <property |
| 15 | name="p_mdc" |
| 16 | value="%replace(%replace(%mdc){'\t','\\\\t'}){'\n', '\\\\n'}" /> |
| 17 | <property |
| 18 | name="p_msg" |
| 19 | value="%replace(%replace(%msg){'\t', '\\\\t'}){'\n','\\\\n'}" /> |
| 20 | <property |
| 21 | name="p_exc" |
| 22 | value="%replace(%replace(%rootException){'\t', '\\\\t'}){'\n','\\\\n'}" /> |
| 23 | <property |
| 24 | name="p_mak" |
| 25 | value="%replace(%replace(%marker){'\t', '\\\\t'}){'\n','\\\\n'}" /> |
| 26 | <property |
| 27 | name="p_thr" |
| 28 | value="%thread" /> |
| 29 | <property |
| 30 | name="defaultPattern" |
| 31 | 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" /> |
| 32 | <property |
| 33 | name="debugPattern" |
| 34 | value="%nopexception${p_tim}|${p_lvl}|${p_mdc}|${p_exc}|%msg%n" /> |
| 35 | |
| 36 | <!-- Example evaluator filter applied against console appender --> |
| 37 | <appender |
| 38 | name="STDOUT" |
| 39 | class="ch.qos.logback.core.ConsoleAppender"> |
| 40 | <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
| 41 | <level>INFO</level> |
| 42 | </filter> |
| 43 | <encoder> |
| 44 | <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{1024} - %msg%n |
| 45 | </pattern> |
| 46 | </encoder> |
| 47 | </appender> |
| 48 | <logger |
| 49 | name="org.onap.aaf" |
| 50 | level="DEBUG"> |
| 51 | <appender-ref ref="STDOUT" /> |
| 52 | </logger> |
| 53 | <logger |
| 54 | name="org.apache" |
| 55 | level="DEBUG"> |
| 56 | <appender-ref ref="STDOUT" /> |
| 57 | </logger> |
| 58 | <!-- Spring related loggers --> |
| 59 | <logger |
| 60 | name="org.springframework" |
| 61 | level="DEBUG"> |
| 62 | <appender-ref ref="STDOUT" /> |
| 63 | </logger> |
| 64 | |
| 65 | <!-- CLDS related loggers --> |
| 66 | <logger |
| 67 | name="org.onap.clamp" |
| 68 | level="DEBUG"> |
| 69 | <appender-ref ref="STDOUT" /> |
| 70 | </logger> |
| 71 | |
| 72 | <!-- CLDS related loggers --> |
| 73 | <logger |
| 74 | name="com.att.eelf.error" |
| 75 | level="OFF"> |
| 76 | <appender-ref ref="STDOUT" /> |
| 77 | </logger> |
| 78 | |
| 79 | <logger |
| 80 | name="ch.qos.logback.classic" |
sebdet | 580141f | 2020-04-01 00:00:37 +0200 | [diff] [blame^] | 81 | level="INFO" > |
| 82 | <appender-ref ref="STDOUT" /> |
| 83 | </logger> |
sebdet | 5d03e8b | 2020-02-03 20:27:59 +0100 | [diff] [blame] | 84 | <logger |
| 85 | name="ch.qos.logback.core" |
sebdet | 580141f | 2020-04-01 00:00:37 +0200 | [diff] [blame^] | 86 | level="INFO" > |
| 87 | <appender-ref ref="STDOUT" /> |
| 88 | </logger> |
sebdet | 5d03e8b | 2020-02-03 20:27:59 +0100 | [diff] [blame] | 89 | |
| 90 | <!-- logback jms appenders & loggers definition ends here --> |
| 91 | |
| 92 | <root level="DEBUG"> |
| 93 | <appender-ref ref="STDOUT" /> |
| 94 | </root> |
| 95 | </configuration> |