Author: veithen
Date: Wed Aug 20 14:16:14 2008
New Revision: 687468
URL: http://svn.apache.org/viewvc?rev=687468&view=rev
Log:
Transport tests: set up logging configuration to reduce the amount of logging
generated by the tests.
Added:
synapse/trunk/java/modules/transports/log4j.properties
synapse/trunk/java/modules/transports/logging.properties
Modified:
synapse/trunk/java/modules/transports/pom.xml
Added: synapse/trunk/java/modules/transports/log4j.properties
URL:
http://svn.apache.org/viewvc/synapse/trunk/java/modules/transports/log4j.properties?rev=687468&view=auto
==============================================================================
--- synapse/trunk/java/modules/transports/log4j.properties (added)
+++ synapse/trunk/java/modules/transports/log4j.properties Wed Aug 20 14:16:14
2008
@@ -0,0 +1,32 @@
+#
+# 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.
+#
+
+# log4j configuration file used by unit tests
+
+log4j.rootCategory=INFO, CONSOLE
+#log4j.category.org.apache.synapse.transport=DEBUG
+log4j.category.org.apache.axis2.deployment=WARN
+log4j.category.org.apache.axis2.builder.BuilderUtil=WARN
+log4j.category.org.apache.commons.vfs.impl.DefaultFileReplicator=WARN
+log4j.category.org.apache.synapse.transport.base.TransportMBeanSupport=ERROR
+log4j.category.org.apache.qpid=WARN
+
+log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
+log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
+log4j.appender.CONSOLE.layout.ConversionPattern=%5p [%t] %c{1} %m%n
Added: synapse/trunk/java/modules/transports/logging.properties
URL:
http://svn.apache.org/viewvc/synapse/trunk/java/modules/transports/logging.properties?rev=687468&view=auto
==============================================================================
--- synapse/trunk/java/modules/transports/logging.properties (added)
+++ synapse/trunk/java/modules/transports/logging.properties Wed Aug 20
14:16:14 2008
@@ -0,0 +1,2 @@
+.level=INFO
+org.apache.qpid=WARN
Modified: synapse/trunk/java/modules/transports/pom.xml
URL:
http://svn.apache.org/viewvc/synapse/trunk/java/modules/transports/pom.xml?rev=687468&r1=687467&r2=687468&view=diff
==============================================================================
--- synapse/trunk/java/modules/transports/pom.xml (original)
+++ synapse/trunk/java/modules/transports/pom.xml Wed Aug 20 14:16:14 2008
@@ -53,6 +53,16 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>2.3</version>
<configuration>
+ <systemProperties>
+ <property>
+ <name>log4j.configuration</name>
+ <value>file:log4j.properties</value>
+ </property>
+ <property>
+ <name>java.util.logging.config.file</name>
+ <value>file:logging.properties</value>
+ </property>
+ </systemProperties>
<excludes>
<exclude>**/AbstractTransportTest.java</exclude>
<exclude>**/MailEchoRawXMLTest.java</exclude>
@@ -144,6 +154,16 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>2.3</version>
<configuration>
+ <systemProperties>
+ <property>
+ <name>log4j.configuration</name>
+ <value>file:log4j.properties</value>
+ </property>
+ <property>
+ <name>java.util.logging.config.file</name>
+ <value>file:logging.properties</value>
+ </property>
+ </systemProperties>
<excludes>
<exclude>**/VFSEchoRawXMLTest.java</exclude>
<exclude>**/MailEchoRawXMLTest.java</exclude>