You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by ra...@apache.org on 2015/11/21 08:06:17 UTC

[2/4] stratos git commit: Add a log appender for PCA test case log messages

Add a log appender for PCA test case log messages


Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/8b9683db
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/8b9683db
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/8b9683db

Branch: refs/heads/stratos-4.1.x
Commit: 8b9683dbede8aa7e361b50ea595930f684ed06f9
Parents: bf6f105
Author: Akila Perera <ra...@gmail.com>
Authored: Sat Nov 21 12:03:59 2015 +0530
Committer: Akila Perera <ra...@gmail.com>
Committed: Sat Nov 21 12:31:32 2015 +0530

----------------------------------------------------------------------
 .../src/test/resources/log4j.properties         | 55 ++++++++++++++++++++
 1 file changed, 55 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/8b9683db/products/python-cartridge-agent/modules/integration/test-integration/src/test/resources/log4j.properties
----------------------------------------------------------------------
diff --git a/products/python-cartridge-agent/modules/integration/test-integration/src/test/resources/log4j.properties b/products/python-cartridge-agent/modules/integration/test-integration/src/test/resources/log4j.properties
new file mode 100644
index 0000000..759bbb4
--- /dev/null
+++ b/products/python-cartridge-agent/modules/integration/test-integration/src/test/resources/log4j.properties
@@ -0,0 +1,55 @@
+#
+# 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.
+#
+
+#
+# This is the log4j configuration file used by Stratos integration tests
+#
+
+log4j.rootLogger=INFO, stdout
+
+log4j.logger.org.apache.stratos.python.cartridge.agent.integration.tests=INFO, INTEGRATION_TEST
+log4j.logger.org.apache.stratos.python.cartridge.agent.integration.tests.PythonAgentIntegrationTest=DEBUG, stdout
+log4j.additivity.org.apache.stratos.python.cartridge.agent.integration.tests.PythonAgentIntegrationTest=false
+
+# stdout is set to be a ConsoleAppender using a PatternLayout.
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+#log4j.appender.stdout.Target=System.out
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
+log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p {%c}:%L - %m%n
+log4j.appender.stdout.threshold=DEBUG
+
+
+# INTEGRATION_TEST is set to be a DailyRollingFileAppender using a PatternLayout.
+log4j.appender.INTEGRATION_TEST=org.apache.log4j.RollingFileAppender
+log4j.appender.INTEGRATION_TEST.MaxFileSize=10000KB
+log4j.appender.INTEGRATION_TEST.MaxBackupIndex=10
+log4j.appender.INTEGRATION_TEST.File=pca-live-test.log
+log4j.appender.INTEGRATION_TEST.Append=true
+log4j.appender.INTEGRATION_TEST.layout=org.apache.log4j.PatternLayout
+log4j.appender.INTEGRATION_TEST.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p {%c}:%L - %m%n
+log4j.appender.INTEGRATION_TEST.threshold=INFO
+
+
+# This file is used to override the default logger settings, and is used to remove unwanted logs from Shindig appearing on the console.
+
+# Specification of Handler used by Console Logger
+handlers=java.util.logging.ConsoleHandler
+
+# Replacing default INFO level with SEVERE
+java.util.logging.ConsoleHandler.level=SEVERE