update link to upper-constraints.txt
[dmaap/messagerouter/messageservice.git] / ajsc-shared-config / etc / basic-logback_root_logger_level_off.xml
1 <!--
2      ============LICENSE_START=======================================================
3      org.onap.dmaap
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
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      ============LICENSE_END=========================================================
18    
19      ECOMP is a trademark and service mark of AT&T Intellectual Property.
20      
21  -->
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">
26                         <level>ERROR</level>
27                 </filter>
28                 <encoder>
29                         <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} - %msg%n
30                         </pattern>
31                 </encoder>
32         </appender>
33
34         <appender name="INFO"
35                 class="ch.qos.logback.core.rolling.RollingFileAppender">
36                 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
37                         <level>DEBUG</level>
38                 </filter>
39                 <file>${logDirectory}/info_ajsc.log</file>
40                 <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
41                         <fileNamePattern>${logDirectory}/info_ajsc.%i.log.zip
42                         </fileNamePattern>
43                         <minIndex>1</minIndex>
44                         <maxIndex>9</maxIndex>
45                 </rollingPolicy>
46                 <triggeringPolicy
47                         class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
48                         <maxFileSize>5MB</maxFileSize>
49                 </triggeringPolicy>
50                 <encoder>
51                         <pattern>"%d [%thread] %-5level %logger{1024} - %msg%n"</pattern>
52                 </encoder>
53         </appender>
54         <appender name="ERROR"
55                 class="ch.qos.logback.core.rolling.RollingFileAppender">
56                 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
57                         <level>ERROR</level>
58                 </filter>
59                 <file>${logDirectory}/error_ajsc.log</file>
60                 <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
61                         <fileNamePattern>${logDirectory}/error_ajsc.%i.log.zip
62                         </fileNamePattern>
63                         <minIndex>1</minIndex>
64                         <maxIndex>9</maxIndex>
65                 </rollingPolicy>
66                 <triggeringPolicy
67                         class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
68                         <maxFileSize>5MB</maxFileSize>
69                 </triggeringPolicy>
70                 <encoder>
71                         <!-- <pattern>"%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} - %msg%n"</pattern> -->
72                         <pattern>"%d [%thread] %-5level %logger{1024} - %msg%n"</pattern>
73                 </encoder>
74         </appender>
75
76         <appender name="AJSC-AUDIT" class="ch.qos.logback.classic.net.SyslogAppender">
77                 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
78                         <level>INFO</level>
79                 </filter>
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 
84                         begins -->
85                 <suffixPattern>AJSC_AUDIT: [%thread] [%logger] %msg</suffixPattern>
86         </appender>
87         <appender name="CONTROLLER-AUDIT" class="ch.qos.logback.classic.net.SyslogAppender">
88                 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
89                         <level>INFO</level>
90                 </filter>
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 
95                         begins -->
96                 <suffixPattern>AJSC_AUDIT: [%thread] [%logger] mdc:[%mdc] %msg
97                 </suffixPattern>
98         </appender>
99
100         <root level="off">
101                 <appender-ref ref="ERROR" />
102                 <appender-ref ref="INFO" />
103                 <appender-ref ref="STDOUT" />
104         </root>
105 </configuration>