William Kurkian | bde6fc9 | 2018-07-13 17:19:58 -0400 | [diff] [blame] | 1 | <!-- |
William Kurkian | 1bedb41 | 2018-07-19 12:55:41 -0400 | [diff] [blame^] | 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. |
William Kurkian | bde6fc9 | 2018-07-13 17:19:58 -0400 | [diff] [blame] | 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"/> |
William Kurkian | 1bedb41 | 2018-07-19 12:55:41 -0400 | [diff] [blame^] | 27 | |
William Kurkian | bde6fc9 | 2018-07-13 17:19:58 -0400 | [diff] [blame] | 28 | <appender name="FILE_MAIN" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
William Kurkian | 1bedb41 | 2018-07-19 12:55:41 -0400 | [diff] [blame^] | 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> |
William Kurkian | bde6fc9 | 2018-07-13 17:19:58 -0400 | [diff] [blame] | 39 | |
William Kurkian | 1bedb41 | 2018-07-19 12:55:41 -0400 | [diff] [blame^] | 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> |
William Kurkian | bde6fc9 | 2018-07-13 17:19:58 -0400 | [diff] [blame] | 59 | |
William Kurkian | 1bedb41 | 2018-07-19 12:55:41 -0400 | [diff] [blame^] | 60 | <logger name="org.springframework" level="WARNING"/> |
William Kurkian | bde6fc9 | 2018-07-13 17:19:58 -0400 | [diff] [blame] | 61 | |
William Kurkian | 1bedb41 | 2018-07-19 12:55:41 -0400 | [diff] [blame^] | 62 | <root level="debug"> |
| 63 | <appender-ref ref="FILE_MAIN" /> |
| 64 | <appender-ref ref="FILE_DATA" /> |
| 65 | <appender-ref ref="STDOUT" /> |
| 66 | </root> |
William Kurkian | bde6fc9 | 2018-07-13 17:19:58 -0400 | [diff] [blame] | 67 | |
| 68 | </configuration> |