2 ============LICENSE_START==========================================
4 ===================================================================
5 Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
6 Copyright © 2017-2018 Amdocs
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
12 http://www.apache.org/licenses/LICENSE-2.0
14 Unless required by applicable law or agreed to in writing, software
15 distributed under the License is distributed on an "AS IS" BASIS,
16 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 See the License for the specific language governing permissions and
18 limitations under the License.
19 ============LICENSE_END============================================
21 <configuration scan="true" scanPeriod="3 seconds" debug="true">
22 <property name="logDirectory" value="${AJSC_HOME}/log" />
23 <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
24 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
28 <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} - %msg%n
34 class="ch.qos.logback.core.rolling.RollingFileAppender">
35 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
38 <file>${logDirectory}/info_ajsc.log</file>
39 <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
40 <fileNamePattern>${logDirectory}/info_ajsc.%i.log.zip
42 <minIndex>1</minIndex>
43 <maxIndex>9</maxIndex>
46 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
47 <maxFileSize>5MB</maxFileSize>
50 <pattern>"%d [%thread] %-5level %logger{1024} - %msg%n"</pattern>
53 <appender name="ERROR"
54 class="ch.qos.logback.core.rolling.RollingFileAppender">
55 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
58 <file>${logDirectory}/error_ajsc.log</file>
59 <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
60 <fileNamePattern>${logDirectory}/error_ajsc.%i.log.zip
62 <minIndex>1</minIndex>
63 <maxIndex>9</maxIndex>
66 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
67 <maxFileSize>5MB</maxFileSize>
70 <!-- <pattern>"%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} - %msg%n"</pattern> -->
71 <pattern>"%d [%thread] %-5level %logger{1024} - %msg%n"</pattern>
75 <appender name="AJSC-AUDIT" class="ch.qos.logback.classic.net.SyslogAppender">
76 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
79 <syslogHost>localhost</syslogHost>
80 <facility>USER</facility>
81 <!-- Note the colon character below - it is important part of "TAG" message
82 format You need a colon to determine where the TAG field ends and the CONTENT
84 <suffixPattern>AJSC_AUDIT: [%thread] [%logger] %msg</suffixPattern>
86 <appender name="CONTROLLER-AUDIT" class="ch.qos.logback.classic.net.SyslogAppender">
87 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
90 <syslogHost>localhost</syslogHost>
91 <facility>USER</facility>
92 <!-- Note the colon character below - it is important part of "TAG" message
93 format You need a colon to determine where the TAG field ends and the CONTENT
95 <suffixPattern>AJSC_AUDIT: [%thread] [%logger] mdc:[%mdc] %msg
100 <appender-ref ref="ERROR" />
101 <appender-ref ref="INFO" />
102 <appender-ref ref="STDOUT" />