ajay_dp001 | cabe143 | 2021-01-28 14:33:07 +0530 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
| 3 | ============LICENSE_START======================================================= |
| 4 | Copyright (C) 2021 Nordix Foundation. |
| 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 status="WARN"> |
| 23 | <Appenders> |
| 24 | <!-- Console Appender --> |
| 25 | <Console name="STDOUT" target="SYSTEM_OUT"> |
| 26 | <PatternLayout pattern="[%d{ISO8601}{GMT+0} GMT][%-10t][%-5p][%X{serverIp}]%m%n"/> |
| 27 | </Console> |
| 28 | |
| 29 | <!-- Rolling File Appender --> |
| 30 | <RollingFile name="rollingFile"> |
| 31 | <FileName>./${CAMBRIA_LOG_DIR}/cambria.log</FileName> |
| 32 | <FilePattern>./${CAMBRIA_LOG_DIR}/${date:yyyy-MM}/cambria-%d{yyyy-MM-dd}-%i.log</FilePattern> |
| 33 | <PatternLayout> |
| 34 | <Pattern>%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</Pattern> |
| 35 | </PatternLayout> |
| 36 | <Policies> |
| 37 | <SizeBasedTriggeringPolicy size="128 MB"/> |
| 38 | </Policies> |
| 39 | <DefaultRolloverStrategy max="10"/> |
| 40 | </RollingFile> |
| 41 | |
| 42 | <!-- Rolling File Appender --> |
| 43 | <RollingFile name="rollingFile_ECOMP_ERROR"> |
| 44 | <FileName>./${CAMBRIA_LOG_DIR}/error.log</FileName> |
| 45 | <FilePattern>./${CAMBRIA_LOG_DIR}/${date:yyyy-MM}/error-%d{yyyy-MM-dd}-%i.log</FilePattern> |
| 46 | <PatternLayout> |
| 47 | <Pattern>%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</Pattern> |
| 48 | </PatternLayout> |
| 49 | <Policies> |
| 50 | <SizeBasedTriggeringPolicy size="128 MB"/> |
| 51 | </Policies> |
| 52 | <DefaultRolloverStrategy max="10"/> |
| 53 | </RollingFile> |
| 54 | </Appenders> |
| 55 | <Loggers> |
| 56 | <Root level="${CAMBRIA_LOG_THRESHOLD}"> |
| 57 | <AppenderRef ref="rollingFile"/> |
| 58 | </Root> |
| 59 | </Loggers> |
| 60 | </Configuration> |