ramverma | 6029d25 | 2018-05-25 11:55:45 +0100 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
| 3 | ============LICENSE_START======================================================= |
| 4 | Copyright (C) 2016-2018 Ericsson. All rights reserved. |
| 5 | ================================================================================ |
| 6 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | you may not use this file except in compliance with the License. |
| 8 | You may obtain a copy of the License at |
| 9 | |
| 10 | http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | |
| 12 | Unless required by applicable law or agreed to in writing, software |
| 13 | distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | See the License for the specific language governing permissions and |
| 16 | limitations under the License. |
| 17 | |
| 18 | SPDX-License-Identifier: Apache-2.0 |
| 19 | ============LICENSE_END========================================================= |
| 20 | --> |
| 21 | |
| 22 | <configuration> |
| 23 | |
| 24 | <contextName>Apex</contextName> |
| 25 | <statusListener class="ch.qos.logback.core.status.OnConsoleStatusListener" /> |
| 26 | <property name="LOG_DIR" value="${java.io.tmpdir}/apex_logging/" /> |
| 27 | |
liamfallon | 1f7c861 | 2018-11-20 15:59:50 +0000 | [diff] [blame] | 28 | <!-- USE FOR STD OUT ONLY --> |
ramverma | 6029d25 | 2018-05-25 11:55:45 +0100 | [diff] [blame] | 29 | <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> |
| 30 | <encoder> |
| 31 | <Pattern>%d %contextName [%t] %level %logger{36} - %msg%n</Pattern> |
| 32 | </encoder> |
| 33 | </appender> |
| 34 | |
| 35 | <root level="INFO"> |
| 36 | <appender-ref ref="STDOUT" /> |
| 37 | </root> |
| 38 | |
| 39 | <logger name="org.infinispan" level="INFO" additivity="false"> |
| 40 | <appender-ref ref="STDOUT" /> |
| 41 | </logger> |
| 42 | |
| 43 | <logger name="org.apache.zookeeper.ClientCnxn" level="OFF" additivity="false"> |
| 44 | <appender-ref ref="STDOUT" /> |
| 45 | </logger> |
| 46 | |
liamfallon | 8a3a780 | 2019-11-26 14:31:28 +0000 | [diff] [blame] | 47 | <logger name="org.onap.policy.apex.core" level="INFO" additivity="false"> |
ramverma | 6029d25 | 2018-05-25 11:55:45 +0100 | [diff] [blame] | 48 | <appender-ref ref="STDOUT" /> |
| 49 | </logger> |
| 50 | |
| 51 | <appender name="FILE" class="ch.qos.logback.core.FileAppender"> |
| 52 | <file>${LOG_DIR}/apex.log</file> |
| 53 | <encoder> |
| 54 | <pattern>%d %-5relative [procId=${processId}] [%thread] %-5level |
| 55 | %logger{26} - %msg %n %ex{full}</pattern> |
| 56 | </encoder> |
| 57 | </appender> |
| 58 | |
| 59 | <appender name="CTXT_FILE" class="ch.qos.logback.core.FileAppender"> |
| 60 | <file>${LOG_DIR}/apex_ctxt.log</file> |
| 61 | <encoder> |
| 62 | <pattern>%d %-5relative [procId=${processId}] [%thread] %-5level |
| 63 | %logger{26} - %msg %n %ex{full}</pattern> |
| 64 | </encoder> |
| 65 | </appender> |
| 66 | |
liamfallon | 8a3a780 | 2019-11-26 14:31:28 +0000 | [diff] [blame] | 67 | <logger name="org.onap.policy.apex.core.context.impl.monitoring" level="INFO" additivity="false"> |
ramverma | 6029d25 | 2018-05-25 11:55:45 +0100 | [diff] [blame] | 68 | <appender-ref ref="CTXT_FILE" /> |
| 69 | </logger> |
| 70 | |
| 71 | <logger name="org.onap.policy.apex.core.context" level="INFO" additivity="false"> |
| 72 | <appender-ref ref="STDOUT" /> |
| 73 | </logger> |
| 74 | </configuration> |