047da14ffb658eee0354f04cf2531c571dad23a3
[aai/traversal.git] / aai-traversal / ajsc-shared-config / etc / basic-logback_root_logger_level_off.xml
1 <!--
2
3     ============LICENSE_START=======================================================
4     org.onap.aai
5     ================================================================================
6     Copyright © 2017 AT&T Intellectual Property. All rights reserved.
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     ECOMP is a trademark and service mark of AT&T Intellectual Property.
22
23 -->
24 <configuration scan="true" scanPeriod="3 seconds" debug="true">
25         <property name="logDirectory" value="${AJSC_HOME}/log" />
26         <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
27                 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
28                         <level>ERROR</level>
29                 </filter>
30                 <encoder>
31                         <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} - %msg%n
32                         </pattern>
33                 </encoder>
34         </appender>
35
36         <appender name="INFO"
37                 class="ch.qos.logback.core.rolling.RollingFileAppender">
38                 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
39                         <level>DEBUG</level>
40                 </filter>
41                 <file>${logDirectory}/info_ajsc.log</file>
42                 <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
43                         <fileNamePattern>${logDirectory}/info_ajsc.%i.log.zip
44                         </fileNamePattern>
45                         <minIndex>1</minIndex>
46                         <maxIndex>9</maxIndex>
47                 </rollingPolicy>
48                 <triggeringPolicy
49                         class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
50                         <maxFileSize>5MB</maxFileSize>
51                 </triggeringPolicy>
52                 <encoder>
53                         <pattern>"%d [%thread] %-5level %logger{1024} - %msg%n"</pattern>
54                 </encoder>
55         </appender>
56         <appender name="ERROR"
57                 class="ch.qos.logback.core.rolling.RollingFileAppender">
58                 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
59                         <level>ERROR</level>
60                 </filter>
61                 <file>${logDirectory}/error_ajsc.log</file>
62                 <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
63                         <fileNamePattern>${logDirectory}/error_ajsc.%i.log.zip
64                         </fileNamePattern>
65                         <minIndex>1</minIndex>
66                         <maxIndex>9</maxIndex>
67                 </rollingPolicy>
68                 <triggeringPolicy
69                         class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
70                         <maxFileSize>5MB</maxFileSize>
71                 </triggeringPolicy>
72                 <encoder>
73                         <!-- <pattern>"%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} - %msg%n"</pattern> -->
74                         <pattern>"%d [%thread] %-5level %logger{1024} - %msg%n"</pattern>
75                 </encoder>
76         </appender>
77
78         <appender name="AJSC-AUDIT" class="ch.qos.logback.classic.net.SyslogAppender">
79                 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
80                         <level>INFO</level>
81                 </filter>
82                 <syslogHost>localhost</syslogHost>
83                 <facility>USER</facility>
84                 <!-- Note the colon character below - it is important part of "TAG" message 
85                         format You need a colon to determine where the TAG field ends and the CONTENT 
86                         begins -->
87                 <suffixPattern>AJSC_AUDIT: [%thread] [%logger] %msg</suffixPattern>
88         </appender>
89         <appender name="CONTROLLER-AUDIT" class="ch.qos.logback.classic.net.SyslogAppender">
90                 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
91                         <level>INFO</level>
92                 </filter>
93                 <syslogHost>localhost</syslogHost>
94                 <facility>USER</facility>
95                 <!-- Note the colon character below - it is important part of "TAG" message 
96                         format You need a colon to determine where the TAG field ends and the CONTENT 
97                         begins -->
98                 <suffixPattern>AJSC_AUDIT: [%thread] [%logger] mdc:[%mdc] %msg
99                 </suffixPattern>
100         </appender>
101
102         <root level="off">
103                 <appender-ref ref="ERROR" />
104                 <appender-ref ref="INFO" />
105                 <appender-ref ref="STDOUT" />
106         </root>
107 </configuration>