Remove dependency on org.powermock (PowerMockito)
[aai/model-loader.git] / ajsc-shared-config / etc / basic-logback_root_logger_level_off.xml
1 <!--
2   ============LICENSE_START==========================================
3   org.onap.aai
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
11
12          http://www.apache.org/licenses/LICENSE-2.0
13
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============================================
20   -->
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">
25                         <level>ERROR</level>
26                 </filter>
27                 <encoder>
28                         <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} - %msg%n
29                         </pattern>
30                 </encoder>
31         </appender>
32
33         <appender name="INFO"
34                 class="ch.qos.logback.core.rolling.RollingFileAppender">
35                 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
36                         <level>DEBUG</level>
37                 </filter>
38                 <file>${logDirectory}/info_ajsc.log</file>
39                 <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
40                         <fileNamePattern>${logDirectory}/info_ajsc.%i.log.zip
41                         </fileNamePattern>
42                         <minIndex>1</minIndex>
43                         <maxIndex>9</maxIndex>
44                 </rollingPolicy>
45                 <triggeringPolicy
46                         class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
47                         <maxFileSize>5MB</maxFileSize>
48                 </triggeringPolicy>
49                 <encoder>
50                         <pattern>"%d [%thread] %-5level %logger{1024} - %msg%n"</pattern>
51                 </encoder>
52         </appender>
53         <appender name="ERROR"
54                 class="ch.qos.logback.core.rolling.RollingFileAppender">
55                 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
56                         <level>ERROR</level>
57                 </filter>
58                 <file>${logDirectory}/error_ajsc.log</file>
59                 <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
60                         <fileNamePattern>${logDirectory}/error_ajsc.%i.log.zip
61                         </fileNamePattern>
62                         <minIndex>1</minIndex>
63                         <maxIndex>9</maxIndex>
64                 </rollingPolicy>
65                 <triggeringPolicy
66                         class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
67                         <maxFileSize>5MB</maxFileSize>
68                 </triggeringPolicy>
69                 <encoder>
70                         <!-- <pattern>"%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} - %msg%n"</pattern> -->
71                         <pattern>"%d [%thread] %-5level %logger{1024} - %msg%n"</pattern>
72                 </encoder>
73         </appender>
74
75         <appender name="AJSC-AUDIT" class="ch.qos.logback.classic.net.SyslogAppender">
76                 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
77                         <level>INFO</level>
78                 </filter>
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 
83                         begins -->
84                 <suffixPattern>AJSC_AUDIT: [%thread] [%logger] %msg</suffixPattern>
85         </appender>
86         <appender name="CONTROLLER-AUDIT" class="ch.qos.logback.classic.net.SyslogAppender">
87                 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
88                         <level>INFO</level>
89                 </filter>
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 
94                         begins -->
95                 <suffixPattern>AJSC_AUDIT: [%thread] [%logger] mdc:[%mdc] %msg
96                 </suffixPattern>
97         </appender>
98
99         <root level="off">
100                 <appender-ref ref="ERROR" />
101                 <appender-ref ref="INFO" />
102                 <appender-ref ref="STDOUT" />
103         </root>
104 </configuration>