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
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.
17 ============LICENSE_END=========================================================
19 ECOMP is a trademark and service mark of AT&T Intellectual Property.
22 <configuration scan="true" scanPeriod="3 seconds" debug="true">
23 <property name="logDirectory" value="${AJSC_HOME}/log" />
24 <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
25 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
29 <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} - %msg%n
35 class="ch.qos.logback.core.rolling.RollingFileAppender">
36 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
39 <file>${logDirectory}/info_ajsc.log</file>
40 <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
41 <fileNamePattern>${logDirectory}/info_ajsc.%i.log.zip
43 <minIndex>1</minIndex>
44 <maxIndex>9</maxIndex>
47 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
48 <maxFileSize>5MB</maxFileSize>
51 <pattern>"%d [%thread] %-5level %logger{1024} - %msg%n"</pattern>
54 <appender name="ERROR"
55 class="ch.qos.logback.core.rolling.RollingFileAppender">
56 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
59 <file>${logDirectory}/error_ajsc.log</file>
60 <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
61 <fileNamePattern>${logDirectory}/error_ajsc.%i.log.zip
63 <minIndex>1</minIndex>
64 <maxIndex>9</maxIndex>
67 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
68 <maxFileSize>5MB</maxFileSize>
71 <!-- <pattern>"%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} - %msg%n"</pattern> -->
72 <pattern>"%d [%thread] %-5level %logger{1024} - %msg%n"</pattern>
76 <appender name="AJSC-AUDIT" class="ch.qos.logback.classic.net.SyslogAppender">
77 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
80 <syslogHost>localhost</syslogHost>
81 <facility>USER</facility>
82 <!-- Note the colon character below - it is important part of "TAG" message
83 format You need a colon to determine where the TAG field ends and the CONTENT
85 <suffixPattern>AJSC_AUDIT: [%thread] [%logger] %msg</suffixPattern>
87 <appender name="CONTROLLER-AUDIT" class="ch.qos.logback.classic.net.SyslogAppender">
88 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
91 <syslogHost>localhost</syslogHost>
92 <facility>USER</facility>
93 <!-- Note the colon character below - it is important part of "TAG" message
94 format You need a colon to determine where the TAG field ends and the CONTENT
96 <suffixPattern>AJSC_AUDIT: [%thread] [%logger] mdc:[%mdc] %msg
101 <appender-ref ref="ERROR" />
102 <appender-ref ref="INFO" />
103 <appender-ref ref="STDOUT" />