You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Michael Schlotfeldt <mi...@plaudit.com> on 2006/09/22 18:39:46 UTC
How can I set the logger for mojos?
I see the following interface exists:
org.apache.maven.plugin.logging.Log
... and that an implementation is injected into mojos (no idea how that
happens though).
My question is how does somebody go about getting maven to use a
different implementation of the interface? I want to replace it with a
log4j implementation. Does anybody already have a log4j implementation?
Thanks in advanced for all your help!
-Michael
Re: How can I set the logger for mojos?
Posted by Arnaud Bailly <ab...@oqube.com>.
Michael Schlotfeldt <mi...@plaudit.com> writes:
> I see the following interface exists:
> org.apache.maven.plugin.logging.Log
> ... and that an implementation is injected into mojos (no idea how
> that happens though).
>
Hello,
I had the same problem in my mojos. My solution is to wrap the maven
logging system. Here is the java code:
http://www.oqube.com/projects/muse-java/muse-maven-plugin/cobertura/oqube.muse.maven.LogWrapper.html
and how to use it:
http://www.oqube.com/projects/muse-java/muse-maven-plugin/cobertura/oqube.muse.maven.LiterateMuseMojo.html
HTH
--
OQube < software engineering \ génie logiciel >
Arnaud Bailly, Dr.
\web> http://www.oqube.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org