blob: 808a1bcf7fcb233af2668584cc5f90cf99d09bcb [file] [log] [blame]
Varun Gudisenaca63da62017-08-30 16:00:10 -05001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 ============LICENSE_START=======================================================
4 org.onap.dmaap
5 ================================================================================
6 Copyright © 2017 AT&T Intellectual Property. All rights reserved.
7 ================================================================================
8 Licensed under the Apache License, Version 2.0 (the "License");
9 you may not use this file except in compliance with the License.
10 You may obtain a copy of the License at
11 http://www.apache.org/licenses/LICENSE-2.0
12
13 Unless required by applicable law or agreed to in writing, software
14 distributed under the License is distributed on an "AS IS" BASIS,
15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 See the License for the specific language governing permissions and
17 limitations under the License.
18 ============LICENSE_END=========================================================
19
20 ECOMP is a trademark and service mark of AT&T Intellectual Property.
21
22 -->
23
24<!DOCTYPE log4j:configuration PUBLIC
25 "-//APACHE//DTD LOG4J 1.2//EN" "http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/xml/doc-files/log4j.dtd">
26
27<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">
28
29 <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
30 <param name="threshold" value="INFO" />
31 <layout class="org.apache.log4j.EnhancedPatternLayout">
32 <param name="ConversionPattern" value="[%d{ISO8601}{GMT+0} GMT][%-10t][%-5p][%X{serverIp}]%m%n" />
33 </layout>
34 </appender>
35
36 <appender name="FILE" class="org.apache.log4j.RollingFileAppender">
37 <param name="threshold" value="${CAMBRIA_LOG_THRESHOLD}" />
38 <param name="File" value="${CAMBRIA_LOG_DIR}/cambria.log" />
39 <param name="MaxFileSize" value="128MB"/>
40 <param name="MaxBackupIndex" value="10"/>
41 <layout class="org.apache.log4j.EnhancedPatternLayout">
42 <param name="ConversionPattern" value="%d{yyyy-MM-dd'T'HH:mm:ss}{GMT+0}+00:00|%X{requestId}|%X{serviceInstanceId}|%-10t|%X{serverName}|%X{serviceName}|%X{instanceUuid}|%p|%X{severity}|%X{serverIpAddress}|%X{server}|%X{ipAddress}|%X{className}|%X{timer}|%m%n" />
43 </layout>
44 </appender>
45
46 <!-- The ECOMP error.log log -->
47 <appender name="ECOMP_ERROR" class="org.apache.log4j.RollingFileAppender">
48 <param name="threshold" value="INFO" />
49 <param name="File" value="${CAMBRIA_LOG_DIR}/error.log" />
50 <param name="MaxFileSize" value="128MB"/>
51 <param name="MaxBackupIndex" value="10"/>
52 <layout class="org.apache.log4j.EnhancedPatternLayout">
53 <param name="ConversionPattern" value="%d{yyyy-MM-dd'T'HH:mm:ss}{GMT+0}+00:00|%X{requestId}|%X{serviceInstanceId}|%-10t|%X{serverName}|%X{serviceName}|%X{instanceUuid}|%p|%X{severity}|%X{serverIpAddress}|%X{server}|%X{ipAddress}|%X{className}|%X{timer}|%m%n" />
54 </layout>
55 </appender>
56 <!-- the other 3 ECOMP logs are omitted for this release -->
57
58 <root>
59 <level value="${CAMBRIA_LOG_THRESHOLD}" />
60 <appender-ref ref="FILE" />
61 </root>
62
63</log4j:configuration>