1 <?xml version="1.0" encoding="UTF-8"?>
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
10 http://www.apache.org/licenses/LICENSE-2.0
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.
18 SPDX-License-Identifier: Apache-2.0
19 ============LICENSE_END=========================================================
22 <Configuration status="WARN">
24 <!-- Console Appender -->
25 <Console name="STDOUT" target="SYSTEM_OUT">
26 <PatternLayout pattern="[%d{ISO8601}{GMT+0} GMT][%-10t][%-5p]%m%n"/>
29 <!-- Rolling File Appender -->
30 <RollingFile name="rollingFile">
31 <FileName>./logs/cambria.log</FileName>
32 <FilePattern>./logs/${date:yyyy-MM}/cambria-%d{yyyy-MM-dd}-%i.log</FilePattern>
34 <Pattern>[%d{ISO8601}{GMT+0} GMT][%-10t][%-5p]%m%n</Pattern>
37 <SizeBasedTriggeringPolicy size="128 MB"/>
39 <DefaultRolloverStrategy max="10"/>
42 <!-- Rolling File Appender -->
43 <RollingFile name="rollingFile_ECOMP_ERROR">
44 <FileName>./logs/error.log</FileName>
45 <FilePattern>./logs/${date:yyyy-MM}/error-%d{yyyy-MM-dd}-%i.log</FilePattern>
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>
50 <SizeBasedTriggeringPolicy size="128 MB"/>
52 <DefaultRolloverStrategy max="10"/>
57 <AppenderRef ref="STDOUT"/>
58 <AppenderRef ref="rollingFile"/>
59 <AppenderRef ref="rollingFile_ECOMP_ERROR"/>