2 ============LICENSE_START==================================================
4 * ===========================================================================
5 * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
6 * ===========================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
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====================================================
20 * ECOMP is a trademark and service mark of AT&T Intellectual Property.
23 <configuration scan="true" scanPeriod="3 seconds" debug="false">
24 <property name="logDir" value="logs" />
25 <property name="generalLogName" value="application" />
26 <property name="defaultPattern" value="%d{MM/dd-HH:mm:ss.SSS}|%logger|%X{RequestId}|%X{InvocationId}|%X{ServiceInstanceId}|%thread|%X{ServiceName}|%X{InstanceUUID}|%.-5level|%X{AlertSeverity}|%X{ServerIPAddress}|%X{ServerFQDN}|%X{RemoteHost}|%X{Timer}|%msg%n" />
27 <property name="logDirectory" value="${logDir}" />
29 <appender name="file" class="ch.qos.logback.core.FileAppender">
30 <file>${logDirectory}/${generalLogName}.log</file>
32 <immediateFlush>true</immediateFlush>
34 <pattern>${defaultPattern}</pattern>
38 <appender name="console" class="ch.qos.logback.core.ConsoleAppender">
40 <pattern>${defaultPattern}</pattern>
44 <logger name="org.eclipse.jetty" level="INFO"/>
47 <appender-ref ref="file" />
48 <appender-ref ref="console" />