diff options
Diffstat (limited to 'cdap3vm/config/cdap-config-template/logback-container.xml')
-rw-r--r-- | cdap3vm/config/cdap-config-template/logback-container.xml | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/cdap3vm/config/cdap-config-template/logback-container.xml b/cdap3vm/config/cdap-config-template/logback-container.xml new file mode 100644 index 0000000..f1957d8 --- /dev/null +++ b/cdap3vm/config/cdap-config-template/logback-container.xml @@ -0,0 +1,70 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- + Copyright © 2015 Cask Data, Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); you may not + use this file except in compliance with the License. You may obtain a copy of + the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + License for the specific language governing permissions and limitations under + the License. + --> + +<!-- + Logback used by containers that run in YARN eg. Flows, MR, Explore +--> +<configuration> + + <!-- + Disabling some chatty loggers. + --> + <logger name="org.apache.commons.beanutils" level="ERROR"/> + <logger name="org.apache.zookeeper.server" level="ERROR"/> + <logger name="org.apache.zookeeper" level="ERROR"/> + <logger name="com.ning" level="WARN"/> + <logger name="org.apache.spark" level="WARN"/> + <logger name="org.spark-project" level="WARN"/> + <logger name="org.apache.hadoop" level="WARN"/> + <logger name="org.apache.hive" level="WARN"/> + <logger name="org.quartz.core" level="WARN"/> + <logger name="org.eclipse.jetty" level="WARN"/> + <logger name="io.netty.util.internal" level="WARN"/> + + <logger name="org.apache.twill" level="WARN"/> + <logger name="co.cask.cdap" level="INFO"/> + + <!-- Redirected stdout and stderr of Hive operations --> + <logger name="Explore.stdout" level="INFO"/> + <logger name="Explore.stderr" level="INFO"/> + + + <!-- quick workaround suggested by CASK for ticket #666 [DE257314] --> + <logger name="org.apache.hadoop.io.retry.RetryInvocationHandler" level="ERROR"/> + + <appender name="Rolling" class="ch.qos.logback.core.rolling.RollingFileAppender"> + <!-- LOG_DIRS is the environment variable set by YARN for container logs --> + <file>${LOG_DIRS}/program.log</file> + <encoder> + <pattern>%d{ISO8601} - %-5p [%t:%logger{1}@%L] - %m%n</pattern> + </encoder> + <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> + <!-- Daily rollover at midnight--> + <fileNamePattern>${LOG_DIRS}/program.%d.log</fileNamePattern> + + <!-- Keep 2 weeks of history --> + <maxHistory>14</maxHistory> + </rollingPolicy> + </appender> + + <root level="INFO"> + <appender-ref ref="Rolling"/> + </root> + +</configuration> + |