You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by ma...@apache.org on 2015/08/11 00:35:56 UTC
[05/14] incubator-ranger git commit: RANGER-583 changed
test/resources/log4j.properties files to remove warning during maven test
phase
RANGER-583 changed test/resources/log4j.properties files to remove warning during maven test phase
Project: http://git-wip-us.apache.org/repos/asf/incubator-ranger/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ranger/commit/68a4352b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ranger/tree/68a4352b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ranger/diff/68a4352b
Branch: refs/heads/tag-policy
Commit: 68a4352b3e2ee3ba6c2f9904104641b7a387065b
Parents: edf2af7
Author: Alok Lal <al...@hortonworks.com>
Authored: Tue Jul 28 14:41:15 2015 -0700
Committer: Alok Lal <al...@apache.org>
Committed: Wed Aug 5 12:02:43 2015 -0700
----------------------------------------------------------------------
agents-common/src/test/resources/log4j.properties | 3 +--
agents-cred/src/test/resources/log4j.properties | 16 ++++++++++++++++
hbase-agent/src/test/resources/log4j.properties | 5 ++---
hive-agent/src/test/resource/log4j.properties | 9 ++++++---
security-admin/src/test/resources/log4j.properties | 3 +--
5 files changed, 26 insertions(+), 10 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/68a4352b/agents-common/src/test/resources/log4j.properties
----------------------------------------------------------------------
diff --git a/agents-common/src/test/resources/log4j.properties b/agents-common/src/test/resources/log4j.properties
index bd8197d..cb409e8 100644
--- a/agents-common/src/test/resources/log4j.properties
+++ b/agents-common/src/test/resources/log4j.properties
@@ -15,12 +15,11 @@
##-- To prevent junits from cluttering the build run by default all test runs send output to null appender
log4j.appender.devnull=org.apache.log4j.varia.NullAppender
-log4j.rootLogger=FATAL, devnull
+ranger.root.logger=FATAL,devnull
##-- uncomment the following line during during development/debugging so see debug messages during test run to be emitted to console
# ranger.root.logger=DEBUG,console
-# Define the root logger to the system property "hbase.root.logger".
log4j.rootLogger=${ranger.root.logger}
# Logging Threshold
http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/68a4352b/agents-cred/src/test/resources/log4j.properties
----------------------------------------------------------------------
diff --git a/agents-cred/src/test/resources/log4j.properties b/agents-cred/src/test/resources/log4j.properties
new file mode 100644
index 0000000..c2463a7
--- /dev/null
+++ b/agents-cred/src/test/resources/log4j.properties
@@ -0,0 +1,16 @@
+# Define some default values that can be overridden by system properties
+ranger.root.logger=FATAL,console
+# Define the root logger to the system property "hbase.root.logger".
+log4j.rootLogger=${ranger.root.logger}
+
+# Logging Threshold
+log4j.threshold=ALL
+
+#
+# console
+# Add "console" to rootlogger above if you want to use this
+#
+log4j.appender.console=org.apache.log4j.ConsoleAppender
+log4j.appender.console.target=System.err
+log4j.appender.console.layout=org.apache.log4j.PatternLayout
+log4j.appender.console.layout.ConversionPattern=%d{ISO8601} %-5p [%t] %c{2}: %m%n
http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/68a4352b/hbase-agent/src/test/resources/log4j.properties
----------------------------------------------------------------------
diff --git a/hbase-agent/src/test/resources/log4j.properties b/hbase-agent/src/test/resources/log4j.properties
index 12e172b..cb409e8 100644
--- a/hbase-agent/src/test/resources/log4j.properties
+++ b/hbase-agent/src/test/resources/log4j.properties
@@ -15,12 +15,11 @@
##-- To prevent junits from cluttering the build run by default all test runs send output to null appender
log4j.appender.devnull=org.apache.log4j.varia.NullAppender
-log4j.rootLogger=FATAL, devnull
+ranger.root.logger=FATAL,devnull
##-- uncomment the following line during during development/debugging so see debug messages during test run to be emitted to console
-# ranger.root.logger=WARN,console
+# ranger.root.logger=DEBUG,console
-# Define the root logger to the system property "hbase.root.logger".
log4j.rootLogger=${ranger.root.logger}
# Logging Threshold
http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/68a4352b/hive-agent/src/test/resource/log4j.properties
----------------------------------------------------------------------
diff --git a/hive-agent/src/test/resource/log4j.properties b/hive-agent/src/test/resource/log4j.properties
index c44bc46..f7ab2ba 100644
--- a/hive-agent/src/test/resource/log4j.properties
+++ b/hive-agent/src/test/resource/log4j.properties
@@ -13,9 +13,12 @@
# 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
-ranger.root.logger=INFO,console
-# Define the root logger to the system property "hbase.root.logger".
+##-- To prevent junits from cluttering the build run by default all test runs send output to null appender
+log4j.appender.devnull=org.apache.log4j.varia.NullAppender
+ranger.root.logger=FATAL,devnull
+
+##-- uncomment the following line during during development/debugging so see debug messages during test run to be emitted to console
+# ranger.root.logger=DEBUG,console
log4j.rootLogger=${ranger.root.logger}
# Logging Threshold
http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/68a4352b/security-admin/src/test/resources/log4j.properties
----------------------------------------------------------------------
diff --git a/security-admin/src/test/resources/log4j.properties b/security-admin/src/test/resources/log4j.properties
index bd8197d..cb409e8 100644
--- a/security-admin/src/test/resources/log4j.properties
+++ b/security-admin/src/test/resources/log4j.properties
@@ -15,12 +15,11 @@
##-- To prevent junits from cluttering the build run by default all test runs send output to null appender
log4j.appender.devnull=org.apache.log4j.varia.NullAppender
-log4j.rootLogger=FATAL, devnull
+ranger.root.logger=FATAL,devnull
##-- uncomment the following line during during development/debugging so see debug messages during test run to be emitted to console
# ranger.root.logger=DEBUG,console
-# Define the root logger to the system property "hbase.root.logger".
log4j.rootLogger=${ranger.root.logger}
# Logging Threshold