db-ddlutils-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guy Davis <da...@guydavis.ca>
Subject Configuring log4j for Ant when running DDLUtils tasks
Date Wed, 14 Jun 2006 16:43:46 GMT
Hi all,

I was hoping that someone would have an idea as to how I can configure 
the log4j system so that DDLUtils log messages are output to the console 
when running Ant tasks.

For example, here's the main portion of an Ant task labelled db.clean:

<ddl_to_db schemaFile="${ddlutils.dir}/empty_schema.xml" 
databaseType="${db.type}" validateXml="false">
   <database url="${db.url}" driverClassName="${db.driver}" 
username="${db.user}" password="${db.password}" />
   <writeSchemaToDatabase alterDatabase="true" />

Here's the command line output:
$ ant -Ddb.props=database/ddlutils/oracle.properties db.clean

[ddl_to_db] log4j:WARN No appenders could be found for logger 
[ddl_to_db] log4j:WARN Please initialize the log4j system properly.

This is important as it would give us clues as to why the Ant tasks fail 
for situtations like all the Oracle tablespace is used up etc...

Thanks in advance,

View raw message