blob: 89b8950f14288117c839497ace473b55c2b65428 [file] [log] [blame]
William Kurkianbde6fc92018-07-13 17:19:58 -04001<!--
2 Copyright 2018- Cisco
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15-->
16<configuration>
17
18 <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
19 <encoder>
20 <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
21 </encoder>
22 </appender>
23
24
25 <logger name="org.apache.kafka" level="INFO"/>
26 <logger name="org.apache.kafka.common.metrics" level="INFO"/>
27
28 <appender name="FILE_MAIN" class="ch.qos.logback.core.rolling.RollingFileAppender">
29 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
30 <fileNamePattern>/opt/ves-agent/log-%d{yyyy-MM-dd}.txt</fileNamePattern>
31 <maxHistory>30</maxHistory>
32 <totalSizeCap>5GB</totalSizeCap>
33 </rollingPolicy>
34 <append>true</append>
35 <encoder>
36 <pattern>%-4relative [%thread] %-5level %logger{35} - %msg%n</pattern>
37 </encoder>
38 </appender>
39
40 <appender name="FILE_DATA" class="ch.qos.logback.core.rolling.RollingFileAppender">
41 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
42 <fileNamePattern>/opt/ves-agent/data-%d{yyyy-MM-dd}.txt</fileNamePattern>
43 <maxHistory>30</maxHistory>
44 <totalSizeCap>1GB</totalSizeCap>
45 </rollingPolicy>
46 <append>true</append>
47 <filter class="filter.MarkerFilter">
48 <marker>DATA</marker>
49 <onMismatch>DENY</onMismatch>
50 </filter>
51 <filter class="filter.MarkerFilter">
52 <marker>DATA</marker>
53 <onMatch>ACCEPT</onMatch>
54 </filter>
55 <encoder>
56 <pattern>%-4relative [%thread] %-5level %logger{35} - %msg%n</pattern>
57 </encoder>
58 </appender>
59
60 <logger name="org.springframework" level="WARNING"/>
61
62 <root level="debug">
63 <appender-ref ref="FILE_MAIN" />
64 <appender-ref ref="FILE_DATA" />
65 <appender-ref ref="STDOUT" />
66 </root>
67
68</configuration>