You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Dion Gillard <di...@gmail.com> on 2004/10/29 01:49:36 UTC
Maven and Log4J
Has anyone successfully passed the log4j.configuration property to
maven and gotten it to
work?
I've done this:
maven -Dlog4j.configuration=file:/c:/temp/log4j.properties -Dlog4j.debug clean
and the output is no different from
maven clean
even though all categories have level=DEBUG
--
http://www.multitask.com.au/people/dion/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven and Log4J
Posted by Brett Porter <br...@gmail.com>.
try:
MAVEN_OPTS="-Dlog4j.configuration=file:/c:/temp/log4j.properties
-Dlog4j.debug" maven clean
or your favourite Windows equivalent.
It needs to be passed to the JVM instead of Maven, as log4j is
initialised before the CLI.
- Brett
On Fri, 29 Oct 2004 09:49:36 +1000, Dion Gillard <di...@gmail.com> wrote:
> Has anyone successfully passed the log4j.configuration property to
> maven and gotten it to
> work?
>
> I've done this:
> maven -Dlog4j.configuration=file:/c:/temp/log4j.properties -Dlog4j.debug clean
>
> and the output is no different from
>
> maven clean
>
> even though all categories have level=DEBUG
> --
> http://www.multitask.com.au/people/dion/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org