blob: b96a37686e924d2adf8c491708191cf3c5f1edbc [file] [log] [blame]
waqas.ikrambb89ed32018-06-18 14:04:52 +01001<?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 debug="false">
23 <statusListener class="ch.qos.logback.core.status.NopStatusListener" />
24
25 <contextName>Apex</contextName>
26 <property name="VAR_LOG" value="/var/log/onap/policy/apex-pdp/" />
27
28 <!-- USE FOR STD OUT ONLY -->
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 <appender name="FILE" class="ch.qos.logback.core.FileAppender">
40 <file>${VAR_LOG}/apex.log</file>
41 <encoder>
42 <pattern>%d %-5relative [procId=${processId}] [%thread] %-5level
43 %logger{26} - %msg %n %ex{full}</pattern>
44 </encoder>
45 </appender>
46
47 <appender name="CTXT_FILE" class="ch.qos.logback.core.FileAppender">
48 <file>${VAR_LOG}/apex_ctxt.log</file>
49 <encoder>
50 <pattern>%d %-5relative [procId=${processId}] [%thread] %-5level
51 %logger{26} - %msg %n %ex{full}</pattern>
52 </encoder>
53 </appender>
54
55 <logger name="org.onap.policy.apex" level="info" additivity="false">
56 <appender-ref ref="STDOUT" />
57 <appender-ref ref="FILE" />
58 </logger>
59
60 <logger name="org.onap.policy.apex.core.context.monitoring" level="TRACE" additivity="false">
61 <appender-ref ref="CTXT_FILE" />
62 </logger>
63
64</configuration>