aboutsummaryrefslogtreecommitdiffstats
path: root/cdap3vm/config/cdap-config-template/logback-container.xml
diff options
context:
space:
mode:
Diffstat (limited to 'cdap3vm/config/cdap-config-template/logback-container.xml')
-rw-r--r--cdap3vm/config/cdap-config-template/logback-container.xml17
1 files changed, 8 insertions, 9 deletions
diff --git a/cdap3vm/config/cdap-config-template/logback-container.xml b/cdap3vm/config/cdap-config-template/logback-container.xml
index f1957d8..c693ace 100644
--- a/cdap3vm/config/cdap-config-template/logback-container.xml
+++ b/cdap3vm/config/cdap-config-template/logback-container.xml
@@ -2,13 +2,13 @@
<!--
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
@@ -43,19 +43,18 @@
<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"/>
+ <!-- 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>
+ <!-- CDAP_LOG_DIR is the environment variable set by CDAP for logs -->
+ <file>${CDAP_LOG_DIR}/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>
+ <fileNamePattern>${CDAP_LOG_DIR}/program.%d.log</fileNamePattern>
<!-- Keep 2 weeks of history -->
<maxHistory>14</maxHistory>