blob: e4fcb1233498db7f7b9546341f50fe7e426d1dc6 [file] [log] [blame]
William Kurkianbde6fc92018-07-13 17:19:58 -04001<!--
William Kurkian1bedb412018-07-19 12:55:41 -04002Copyright 2018- Cisco
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
William Kurkianbde6fc92018-07-13 17:19:58 -040015-->
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"/>
William Kurkian1bedb412018-07-19 12:55:41 -040027
William Kurkianbde6fc92018-07-13 17:19:58 -040028 <appender name="FILE_MAIN" class="ch.qos.logback.core.rolling.RollingFileAppender">
William Kurkian1bedb412018-07-19 12:55:41 -040029 <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>
William Kurkianbde6fc92018-07-13 17:19:58 -040039
William Kurkian1bedb412018-07-19 12:55:41 -040040 <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>
William Kurkianbde6fc92018-07-13 17:19:58 -040059
William Kurkian1bedb412018-07-19 12:55:41 -040060 <logger name="org.springframework" level="WARNING"/>
William Kurkianbde6fc92018-07-13 17:19:58 -040061
William Kurkian1bedb412018-07-19 12:55:41 -040062 <root level="debug">
63 <appender-ref ref="FILE_MAIN" />
64 <appender-ref ref="FILE_DATA" />
65 <appender-ref ref="STDOUT" />
66 </root>
William Kurkianbde6fc92018-07-13 17:19:58 -040067
68</configuration>