| # 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. |
| |
| |
| # Log4j2 config that is used by TestSlidingFilenameRolloverStrategy |
| |
| name = Slider |
| |
| # list of properties |
| property.hive.log.level = DEBUG |
| property.hive.root.logger = console |
| property.hive.log.dir = ${sys:test.tmp.dir}/log |
| property.hive.log.file = hive.log |
| property.hive.test.console.log.level = INFO |
| |
| # console appender |
| appender.console.type = Console |
| appender.console.name = console |
| appender.console.target = SYSTEM_ERR |
| appender.console.layout.type = PatternLayout |
| appender.console.layout.pattern = %d{ISO8601} %5p [%t] %c{2}: %m%n |
| |
| # root logger |
| rootLogger.level = ${sys:hive.log.level} |
| rootLogger.appenderRefs = root, console |
| rootLogger.appenderRef.root.ref = ${sys:hive.root.logger} |
| rootLogger.appenderRef.console.ref = console |
| rootLogger.appenderRef.console.level = ${sys:hive.test.console.log.level} |
| |
| # sliding appender |
| appender.sliding.type = RollingFile |
| appender.sliding.name = sliding |
| appender.sliding.filePattern = ./target/tmp/log/slidingTest.log |
| appender.sliding.layout.type = PatternLayout |
| appender.sliding.layout.pattern = %m%n |
| appender.sliding.layout.charset = UTF-8 |
| appender.sliding.policies.type = Policies |
| appender.sliding.policies.size.type = SizeBasedTriggeringPolicy |
| appender.sliding.policies.size.size=1KB |
| appender.sliding.strategy.type = SlidingFilenameRolloverStrategy |
| |
| # lineage logger |
| logger.lineage.name = org.apache.hadoop.hive.ql.hooks.LineageLogger |
| logger.lineage.level = debug |
| logger.lineage.appenderRefs = sliding |
| logger.lineage.appenderRef.file.ref = sliding |
| |