You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ddlutils-dev@db.apache.org by Martin van den Bemt <ml...@mvdb.net> on 2007/03/24 17:47:49 UTC

log4j & DatabaseTaskBase

Was the log4j compile time dependency in DatabaseTaskbase intentional or accidental ? All the rest
of the code doesn't use log4j directly.

Mvgr,
Martin

Re: log4j & DatabaseTaskBase

Posted by Thomas Dudziak <to...@gmail.com>.
Hi Martin,

yes, that is intentional. The idea is to give users a simple way to
turn on logging/debug, hence the logging for the Ant tasks can be
configured via a property. This means that logging needs to be setup'd
in code (instead of a log4j properties file or something similar), and
since there is no way to do that via commons-logging, I had to
hardcode log4j for the Ant tasks.
I don't see this as a problem though since all Ant tasks are small
wrappers around core functions, so there is no need to use the Ant
tasks themselves from within code.

cheers,
Tom

On 3/24/07, Martin van den Bemt <ml...@mvdb.net> wrote:
> Was the log4j compile time dependency in DatabaseTaskbase intentional or accidental ? All the rest
> of the code doesn't use log4j directly.
>
> Mvgr,
> Martin
>