Standalone TCA with EELF Logger
[dcaegen2/analytics/tca-gen2.git] / eelf-logger / eelf-logger-logback-impl / src / main / resources / eelf-optional-appenders.xml
1 <!--
2   ~ ================================================================================
3   ~ Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.
4   ~ ================================================================================
5   ~ Licensed under the Apache License, Version 2.0 (the "License");
6   ~ you may not use this file except in compliance with the License.
7   ~ You may obtain a copy of the License at
8   ~
9   ~      http://www.apache.org/licenses/LICENSE-2.0
10   ~
11   ~ Unless required by applicable law or agreed to in writing, software
12   ~ distributed under the License is distributed on an "AS IS" BASIS,
13   ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   ~ See the License for the specific language governing permissions and
15   ~ limitations under the License.
16   ~ ============LICENSE_END=========================================================
17   ~
18   -->
19
20 <included>
21
22     <!--
23      ============================= DEBUG LOG APPENDER ================================
24      -->
25     <appender name="debugLogAppender" class="ch.qos.logback.core.rolling.RollingFileAppender">
26
27         <filter class="org.onap.dcae.utils.eelf.logger.logback.filter.MarkerFilter">
28             <markers>DEBUG_LOG</markers>
29             <onMatch>ACCEPT</onMatch>
30             <onMismatch>DENY</onMismatch>
31         </filter>
32
33         <file>${debugLogDirectory}/${debugLogName}.log</file>
34
35         <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
36             <fileNamePattern>${logDirectory}/${debugLogName}.%i.log.zip</fileNamePattern>
37             <minIndex>${minFileIndex}</minIndex>
38             <maxIndex>${maxFileIndex}</maxIndex>
39         </rollingPolicy>
40
41         <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
42             <maxFileSize>${maxFileSize}</maxFileSize>
43         </triggeringPolicy>
44
45         <encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
46             <layout class="org.onap.dcae.utils.eelf.logger.logback.layout.DebugLogLayout"/>
47         </encoder>
48
49     </appender>
50
51
52     <!--
53       ============================= CONSOLE APPENDER ================================
54      -->
55     <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
56
57         <filter class="org.onap.dcae.utils.eelf.logger.logback.filter.MarkerFilter">
58             <markers>METRIC_LOG,AUDIT_LOG,ERROR_LOG,DEBUG_LOG</markers>
59             <onMatch>ACCEPT</onMatch>
60             <onMismatch>DENY</onMismatch>
61         </filter>
62
63         <encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
64             <layout class="org.onap.dcae.utils.eelf.logger.logback.layout.ConsoleLayout"/>
65         </encoder>
66     </appender>
67
68 </included>