| # Licensed to the Apache Software Foundation (ASF) under one |
| # or more contributor license agreements. See the NOTICE file |
| # distributed with this work for additional information |
| # regarding copyright ownership. The ASF licenses this file |
| # to you 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. |
| |
| status = INFO |
| name = TezContainerLog4j2 |
| packages = org.apache.hadoop.hive.ql.log |
| |
| # list of properties |
| property.tez.container.log.level = INFO |
| property.tez.container.root.logger = CLA |
| property.tez.container.log.dir = ${sys:yarn.app.container.log.dir} |
| property.tez.container.log.file = syslog |
| |
| # list of all appenders |
| appenders = CLA |
| |
| # daily rolling file appender |
| appender.CLA.type = RollingRandomAccessFile |
| appender.CLA.name = CLA |
| appender.CLA.fileName = ${sys:tez.container.log.dir}/${sys:tez.container.log.file} |
| appender.CLA.filePattern = ${sys:tez.container.log.dir}/${sys:tez.container.log.file}.%d{yyyy-MM-dd} |
| appender.CLA.layout.type = PatternLayout |
| appender.CLA.layout.pattern = %d{ISO8601} %p [%t] %c{2}: %m%n |
| appender.CLA.policies.type = Policies |
| appender.CLA.policies.time.type = TimeBasedTriggeringPolicy |
| appender.CLA.policies.time.interval = 1 |
| appender.CLA.policies.time.modulate = true |
| appender.CLA.strategy.type = DefaultRolloverStrategy |
| appender.CLA.strategy.max = 30 |
| |
| # root logger |
| rootLogger.level = ${sys:tez.container.log.level} |
| rootLogger.appenderRefs = root |
| rootLogger.appenderRef.root.ref = ${sys:tez.container.root.logger} |