Modified: 
incubator/servicemix/trunk/deployables/serviceengines/servicemix-script/src/test/java/org/apache/servicemix/script/ScriptComponentTest.java
URL: 
http://svn.apache.org/viewvc/incubator/servicemix/trunk/deployables/serviceengines/servicemix-script/src/test/java/org/apache/servicemix/script/ScriptComponentTest.java?view=diff&rev=556864&r1=556863&r2=556864
==============================================================================
--- 
incubator/servicemix/trunk/deployables/serviceengines/servicemix-script/src/test/java/org/apache/servicemix/script/ScriptComponentTest.java
 (original)
+++ 
incubator/servicemix/trunk/deployables/serviceengines/servicemix-script/src/test/java/org/apache/servicemix/script/ScriptComponentTest.java
 Tue Jul 17 02:35:34 2007
@@ -20,6 +20,8 @@
 import javax.jbi.messaging.InOut;
 import javax.xml.namespace.QName;
 
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
 import org.apache.servicemix.client.DefaultServiceMixClient;
 import org.apache.servicemix.jbi.jaxp.SourceTransformer;
 import org.apache.servicemix.jbi.jaxp.StringSource;
@@ -28,6 +30,7 @@
 import org.springframework.context.support.AbstractXmlApplicationContext;
 
 public class ScriptComponentTest extends SpringTestSupport {
+    private static transient Log log = 
LogFactory.getLog(ScriptComponentTest.class);
 
     public void testGroovy() throws Exception {
         DefaultServiceMixClient client = new DefaultServiceMixClient(jbi);
@@ -44,7 +47,7 @@
         } else if (me.getFault() != null) {
             fail("Received fault: " + new 
SourceTransformer().toString(me.getFault().getContent()));
         }
-        System.err.println(new 
SourceTransformer().toString(me.getOutMessage().getContent()));
+        log.info(new 
SourceTransformer().toString(me.getOutMessage().getContent()));
         client.done(me);
     }
     
@@ -63,7 +66,7 @@
         } else if (me.getFault() != null) {
             fail("Received fault: " + new 
SourceTransformer().toString(me.getFault().getContent()));
         }
-        System.err.println(new 
SourceTransformer().toString(me.getOutMessage().getContent()));
+        log.info(new 
SourceTransformer().toString(me.getOutMessage().getContent()));
         client.done(me);
     }
     

Added: 
incubator/servicemix/trunk/deployables/serviceengines/servicemix-script/src/test/resources/log4j-tests.properties
URL: 
http://svn.apache.org/viewvc/incubator/servicemix/trunk/deployables/serviceengines/servicemix-script/src/test/resources/log4j-tests.properties?view=auto&rev=556864
==============================================================================
--- 
incubator/servicemix/trunk/deployables/serviceengines/servicemix-script/src/test/resources/log4j-tests.properties
 (added)
+++ 
incubator/servicemix/trunk/deployables/serviceengines/servicemix-script/src/test/resources/log4j-tests.properties
 Tue Jul 17 02:35:34 2007
@@ -0,0 +1,41 @@
+# 
+# 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.
+#
+#
+
+#
+# The logging properties used during tests..
+#
+log4j.rootLogger=DEBUG, out
+
+log4j.logger.org.apache.activemq=INFO
+log4j.logger.org.apache.activemq.spring=WARN
+log4j.logger.org.apache.activemq.store.journal=INFO
+log4j.logger.org.activeio.journal=INFO
+
+# CONSOLE appender not used by default
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
+log4j.appender.stdout.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} 
- %m%n
+
+# File appender
+log4j.appender.out=org.apache.log4j.FileAppender
+log4j.appender.out.layout=org.apache.log4j.PatternLayout
+log4j.appender.out.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - 
%m%n
+log4j.appender.out.file=target/servicemix-test.log
+log4j.appender.out.append=true

Added: 
incubator/servicemix/trunk/samples/loan-broker/loan-broker-drools-su/src/test/resources/log4j-tests.properties
URL: 
http://svn.apache.org/viewvc/incubator/servicemix/trunk/samples/loan-broker/loan-broker-drools-su/src/test/resources/log4j-tests.properties?view=auto&rev=556864
==============================================================================
--- 
incubator/servicemix/trunk/samples/loan-broker/loan-broker-drools-su/src/test/resources/log4j-tests.properties
 (added)
+++ 
incubator/servicemix/trunk/samples/loan-broker/loan-broker-drools-su/src/test/resources/log4j-tests.properties
 Tue Jul 17 02:35:34 2007
@@ -0,0 +1,41 @@
+# 
+# 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.
+#
+#
+
+#
+# The logging properties used during tests..
+#
+log4j.rootLogger=DEBUG, out
+
+log4j.logger.org.apache.activemq=INFO
+log4j.logger.org.apache.activemq.spring=WARN
+log4j.logger.org.apache.activemq.store.journal=INFO
+log4j.logger.org.activeio.journal=INFO
+
+# CONSOLE appender not used by default
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
+log4j.appender.stdout.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} 
- %m%n
+
+# File appender
+log4j.appender.out=org.apache.log4j.FileAppender
+log4j.appender.out.layout=org.apache.log4j.PatternLayout
+log4j.appender.out.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - 
%m%n
+log4j.appender.out.file=target/servicemix-test.log
+log4j.appender.out.append=true

Added: 
incubator/servicemix/trunk/tooling/jbi-maven-plugin/src/test/resources/log4j-tests.properties
URL: 
http://svn.apache.org/viewvc/incubator/servicemix/trunk/tooling/jbi-maven-plugin/src/test/resources/log4j-tests.properties?view=auto&rev=556864
==============================================================================
--- 
incubator/servicemix/trunk/tooling/jbi-maven-plugin/src/test/resources/log4j-tests.properties
 (added)
+++ 
incubator/servicemix/trunk/tooling/jbi-maven-plugin/src/test/resources/log4j-tests.properties
 Tue Jul 17 02:35:34 2007
@@ -0,0 +1,41 @@
+# 
+# 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.
+#
+#
+
+#
+# The logging properties used during tests..
+#
+log4j.rootLogger=DEBUG, out
+
+log4j.logger.org.apache.activemq=INFO
+log4j.logger.org.apache.activemq.spring=WARN
+log4j.logger.org.apache.activemq.store.journal=INFO
+log4j.logger.org.activeio.journal=INFO
+
+# CONSOLE appender not used by default
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
+log4j.appender.stdout.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} 
- %m%n
+
+# File appender
+log4j.appender.out=org.apache.log4j.FileAppender
+log4j.appender.out.layout=org.apache.log4j.PatternLayout
+log4j.appender.out.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - 
%m%n
+log4j.appender.out.file=target/servicemix-test.log
+log4j.appender.out.append=true


Reply via email to