empire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From franci...@apache.org
Subject svn commit: r882347 - /incubator/empire-db/trunk/empire-db-codegen/src/main/java/org/apache/empire/db/codegen/CodeGen.java
Date Thu, 19 Nov 2009 23:03:29 GMT
Author: francisdb
Date: Thu Nov 19 23:03:29 2009
New Revision: 882347

URL: http://svn.apache.org/viewvc?rev=882347&view=rev
Log:
velocity logging is now integrated with commons logging like the rest of our code

Modified:
    incubator/empire-db/trunk/empire-db-codegen/src/main/java/org/apache/empire/db/codegen/CodeGen.java

Modified: incubator/empire-db/trunk/empire-db-codegen/src/main/java/org/apache/empire/db/codegen/CodeGen.java
URL: http://svn.apache.org/viewvc/incubator/empire-db/trunk/empire-db-codegen/src/main/java/org/apache/empire/db/codegen/CodeGen.java?rev=882347&r1=882346&r2=882347&view=diff
==============================================================================
--- incubator/empire-db/trunk/empire-db-codegen/src/main/java/org/apache/empire/db/codegen/CodeGen.java
(original)
+++ incubator/empire-db/trunk/empire-db-codegen/src/main/java/org/apache/empire/db/codegen/CodeGen.java
Thu Nov 19 23:03:29 2009
@@ -36,7 +36,7 @@
 import org.apache.velocity.app.Velocity;
 import org.apache.velocity.exception.ParseErrorException;
 import org.apache.velocity.exception.ResourceNotFoundException;
-import org.apache.velocity.runtime.RuntimeConstants;
+import org.apache.velocity.runtime.log.CommonsLogLogChute;
 
 /**
  * This is the entry class for generating the java persistence model based on a
@@ -85,9 +85,9 @@
 	 * Constructor
 	 */
 	public CodeGen(CodeGenConfig config) {
-		Velocity.setProperty(RuntimeConstants.RUNTIME_LOG_LOGSYSTEM_CLASS,
-        	"org.apache.velocity.runtime.log.SimpleLog4JLogSystem" );
-		Velocity.setProperty("runtime.log.logsystem.log4j.category", "org.apache.velocity");
+		// we have to keep this in sync with our logging system
+		// http://velocity.apache.org/engine/releases/velocity-1.5/developer-guide.html#simpleexampleofacustomlogger
+		Velocity.setProperty(Velocity.RUNTIME_LOG_LOGSYSTEM, new CommonsLogLogChute() );
 		try {
 			Velocity.init();
 		} catch (Exception e) {



Mime
View raw message