improve logging

sets the commons logging factory explicitly back to its default in order to NOT 
use GeronimoLog, which renders the classname information in logs completely 
useless.


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

Branch: refs/heads/master
Commit: ce03197fa727364014973b42566ab252271080c0
Parents: 392a180
Author: Tammo van Lessen <[email protected]>
Authored: Fri Aug 23 19:37:30 2013 +0200
Committer: Tammo van Lessen <[email protected]>
Committed: Tue Aug 27 00:09:38 2013 +0200

----------------------------------------------------------------------
 Rakefile                                                  |  2 +-
 .../services/org.apache.commons.logging.LogFactory        |  1 +
 axis2-war/src/test/resources/test-log4j.properties        | 10 +++++-----
 .../services/org.apache.commons.logging.LogFactory        |  2 +-
 4 files changed, 8 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ode/blob/ce03197f/Rakefile
----------------------------------------------------------------------
diff --git a/Rakefile b/Rakefile
index 7802806..64eef30 100644
--- a/Rakefile
+++ b/Rakefile
@@ -126,7 +126,7 @@ define "ode" do
       end
     end
 
-    test.using :testng, :forkmode=>'perTest', :properties=>{ "log4j.debug" => 
true,  "log4j.configuration"=>"test-log4j.properties", "test.ports" => 
ENV['TEST_PORTS'], "org.apache.ode.scheduler.deleteJobsOnStart" => "true", 
"org.apache.ode.autoRetireProcess"=>"true" } #, :java_args=>['-Xdebug', 
'-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=6001', '-Xmx2048m', 
'-XX:MaxPermSize=256m']
+    test.using :testng, :forkmode=>'perTest', :properties=>{ 
"org.apache.commons.logging.LogFactory" => 
"org.apache.commons.logging.impl.LogFactoryImpl", 
"log4j.configuration"=>"test-log4j.properties", "test.ports" => 
ENV['TEST_PORTS'], "org.apache.ode.scheduler.deleteJobsOnStart" => "true", 
"org.apache.ode.autoRetireProcess"=>"true" } #, :java_args=>['-Xdebug', 
'-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=6001', '-Xmx2048m', 
'-XX:MaxPermSize=256m']
     test.with projects("tools"), libs, AXIS2_MODULES.mods, AXIOM, 
JAVAX.servlet, Buildr::Jetty::REQUIRES, HIBERNATE, DOM4J, H2::REQUIRES, 
SPRING_TEST
     webapp_dir = "#{test.compile.target}/webapp"
     test.setup task(:prepare_webapp) do |task|

http://git-wip-us.apache.org/repos/asf/ode/blob/ce03197f/axis2-war/src/main/webapp/WEB-INF/classes/META-INF/services/org.apache.commons.logging.LogFactory
----------------------------------------------------------------------
diff --git 
a/axis2-war/src/main/webapp/WEB-INF/classes/META-INF/services/org.apache.commons.logging.LogFactory
 
b/axis2-war/src/main/webapp/WEB-INF/classes/META-INF/services/org.apache.commons.logging.LogFactory
new file mode 100644
index 0000000..c617f1c
--- /dev/null
+++ 
b/axis2-war/src/main/webapp/WEB-INF/classes/META-INF/services/org.apache.commons.logging.LogFactory
@@ -0,0 +1 @@
+org.apache.commons.logging.impl.LogFactoryImpl
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/ode/blob/ce03197f/axis2-war/src/test/resources/test-log4j.properties
----------------------------------------------------------------------
diff --git a/axis2-war/src/test/resources/test-log4j.properties 
b/axis2-war/src/test/resources/test-log4j.properties
index 58d69a4..09b8e7c 100644
--- a/axis2-war/src/test/resources/test-log4j.properties
+++ b/axis2-war/src/test/resources/test-log4j.properties
@@ -33,9 +33,9 @@ log4j.appender.stdout=org.apache.log4j.ConsoleAppender
 log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
 log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} | %-5p | %-10t | 
%-24.24c{1} | %-30.30C %4L | %m%n
 
-log4j.category.httpclient=INFO
-log4j.category.httpclient.Wire=INFO
+log4j.category.httpclient=WARN
+log4j.category.httpclient.Wire=WARN
 log4j.category.org.apache.ode=INFO
-log4j.category.hibernate=INFO
-log4j.category.org.hibernate=INFO
-log4j.category.org.apache.axis2=INFO
+log4j.category.hibernate=WARN
+log4j.category.org.hibernate=WARN
+log4j.category.org.apache.axis2=INFO
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/ode/blob/ce03197f/bpel-test/src/test/resources/META-INF/services/org.apache.commons.logging.LogFactory
----------------------------------------------------------------------
diff --git 
a/bpel-test/src/test/resources/META-INF/services/org.apache.commons.logging.LogFactory
 
b/bpel-test/src/test/resources/META-INF/services/org.apache.commons.logging.LogFactory
index c0589c9..c617f1c 100644
--- 
a/bpel-test/src/test/resources/META-INF/services/org.apache.commons.logging.LogFactory
+++ 
b/bpel-test/src/test/resources/META-INF/services/org.apache.commons.logging.LogFactory
@@ -1 +1 @@
-org.apache.commons.logging.impl.Log4JLogger
\ No newline at end of file
+org.apache.commons.logging.impl.LogFactoryImpl
\ No newline at end of file

Reply via email to