You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by he...@apache.org on 2004/12/08 10:21:32 UTC
svn commit: r111237 - /webservices/axis/trunk/java/dev/scratch/prototype2/project.xml /webservices/axis/trunk/java/dev/scratch/prototype2/src/test-resources/commons-logging.properties /webservices/axis/trunk/java/dev/scratch/prototype2/src/test-resources/log4j.properties
Author: hemapani
Date: Wed Dec 8 01:21:30 2004
New Revision: 111237
URL: http://svn.apache.org/viewcvs?view=rev&rev=111237
Log:
add the logging with log4j and commons logging
Added:
webservices/axis/trunk/java/dev/scratch/prototype2/src/test-resources/commons-logging.properties
webservices/axis/trunk/java/dev/scratch/prototype2/src/test-resources/log4j.properties
Modified:
webservices/axis/trunk/java/dev/scratch/prototype2/project.xml
Modified: webservices/axis/trunk/java/dev/scratch/prototype2/project.xml
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/project.xml?view=diff&rev=111237&p1=webservices/axis/trunk/java/dev/scratch/prototype2/project.xml&r1=111236&p2=webservices/axis/trunk/java/dev/scratch/prototype2/project.xml&r2=111237
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/project.xml (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/project.xml Wed Dec 8 01:21:30 2004
@@ -150,6 +150,16 @@
<url>http://dist.codehaus.org/stax/jars/</url>
</dependency>
<dependency>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ <version>1.2.8</version>
+ <properties>
+ <module>true</module>
+ </properties>
+ <url>http://dist.codehaus.org/stax/jars/</url>
+ </dependency>
+
+ <dependency>
<groupId>stax</groupId>
<artifactId>stax-api</artifactId>
<version>1.0</version>
Added: webservices/axis/trunk/java/dev/scratch/prototype2/src/test-resources/commons-logging.properties
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/test-resources/commons-logging.properties?view=auto&rev=111237
==============================================================================
--- (empty file)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/test-resources/commons-logging.properties Wed Dec 8 01:21:30 2004
@@ -0,0 +1,8 @@
+# Uncomment the next line to disable all logging.
+#org.apache.commons.logging.Log=org.apache.commons.logging.impl.NoOpLog
+
+# Uncomment the next line to enable the simple log based logging
+#org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog
+
+# Uncomment the next line to enable log4j based logging
+org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger
Added: webservices/axis/trunk/java/dev/scratch/prototype2/src/test-resources/log4j.properties
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/test-resources/log4j.properties?view=auto&rev=111237
==============================================================================
--- (empty file)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/test-resources/log4j.properties Wed Dec 8 01:21:30 2004
@@ -0,0 +1,14 @@
+#### Use two appenders, one to log to console, another to log to a file
+log4j.rootCategory=debug, R
+
+#### appender writes to a file
+log4j.appender.R=org.apache.log4j.RollingFileAppender
+log4j.appender.R.File=target/axis.log
+
+# Control the maximum log file size
+log4j.appender.R.MaxFileSize=10000KB
+# Archive log files (one backup file here)
+log4j.appender.R.MaxBackupIndex=100
+
+log4j.appender.R.layout=org.apache.log4j.PatternLayout
+log4j.appender.R.layout.ConversionPattern=%6r %5p [%t] (%F:%L) - %m%n