Repository: sentry Updated Branches: refs/heads/master 403100371 -> b75b9d968
SENTRY-1941: Add log4j2.properties file to sentry-hive-tests-v2 (Sergio Pena, reviewed by Alexander Kolbasov) Project: http://git-wip-us.apache.org/repos/asf/sentry/repo Commit: http://git-wip-us.apache.org/repos/asf/sentry/commit/b75b9d96 Tree: http://git-wip-us.apache.org/repos/asf/sentry/tree/b75b9d96 Diff: http://git-wip-us.apache.org/repos/asf/sentry/diff/b75b9d96 Branch: refs/heads/master Commit: b75b9d96882570d9b0736e464efa081988c16f8e Parents: 4031003 Author: Sergio Pena <[email protected]> Authored: Mon Sep 11 13:39:15 2017 -0500 Committer: Sergio Pena <[email protected]> Committed: Mon Sep 11 13:39:15 2017 -0500 ---------------------------------------------------------------------- .../src/test/resources/log4j2.properties | 53 ++++++++++++++++++++ 1 file changed, 53 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/sentry/blob/b75b9d96/sentry-tests/sentry-tests-hive-v2/src/test/resources/log4j2.properties ---------------------------------------------------------------------- diff --git a/sentry-tests/sentry-tests-hive-v2/src/test/resources/log4j2.properties b/sentry-tests/sentry-tests-hive-v2/src/test/resources/log4j2.properties new file mode 100644 index 0000000..a6ddc29 --- /dev/null +++ b/sentry-tests/sentry-tests-hive-v2/src/test/resources/log4j2.properties @@ -0,0 +1,53 @@ +# +# 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. +# + +# Define some default values that can be overridden by system properties. +# +# For testing, it may also be convenient to specify + +# list of properties +property.sentry.root.logger = INFO + +# list of all appenders +appenders = console + +# console appender +appender.console.name = console +appender.console.type = Console +appender.console.target = SYSTEM_ERR +appender.console.layout.type = PatternLayout +appender.console.layout.pattern = %d (%t) [%p - %l] %m%n + +# list of all loggers +loggers = Sentry, HadoopConf, Datanucleus + +logger.Sentry.name = org.apache.sentry +logger.Sentry.level = DEBUG + +logger.HadoopConf.name = org.apache.hadoop.conf.Configuration +logger.HadoopConf.level = ERROR + +logger.Datanucleus.name = org.datanucleus +logger.Datanucleus.level = ERROR + +# root logger +rootLogger.level = ${sys:sentry.root.logger} +rootLogger.appenderRefs = console +rootLogger.appenderRef.console.ref = console +rootLogger.appenderRef.console.level = ${sys:sentry.root.logger} \ No newline at end of file
