Repository: stratos Updated Branches: refs/heads/stratos-4.1.x 973c05b57 -> 8bdd0b4a9
Package specific logging for integration tests Project: http://git-wip-us.apache.org/repos/asf/stratos/repo Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/8bdd0b4a Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/8bdd0b4a Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/8bdd0b4a Branch: refs/heads/stratos-4.1.x Commit: 8bdd0b4a9a58790f7922f1225ded3c68f713944f Parents: 973c05b Author: Akila Perera <[email protected]> Authored: Mon Sep 14 12:32:24 2015 +0530 Committer: Akila Perera <[email protected]> Committed: Mon Sep 14 12:32:24 2015 +0530 ---------------------------------------------------------------------- .../src/test/resources/log4j.properties | 52 ++++++++++++++++++++ 1 file changed, 52 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/stratos/blob/8bdd0b4a/products/stratos/modules/integration/test-integration/src/test/resources/log4j.properties ---------------------------------------------------------------------- diff --git a/products/stratos/modules/integration/test-integration/src/test/resources/log4j.properties b/products/stratos/modules/integration/test-integration/src/test/resources/log4j.properties new file mode 100644 index 0000000..06791e3 --- /dev/null +++ b/products/stratos/modules/integration/test-integration/src/test/resources/log4j.properties @@ -0,0 +1,52 @@ +# +# 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.integration=INFO, INTEGRATION_TEST + +# 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=stratos-integration.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=DEBUG + + +# 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
