On 27-Mar-09, at 2:10 PM, Barrie Treloar wrote:
On Sat, Mar 28, 2009 at 1:59 AM, Jason van Zyl
<jvan...@sonatype.com> wrote:
On 26-Mar-09, at 5:29 PM, Barrie Treloar wrote:
EclipsePlugin extends AbstractIdeSupportMojo
AbstractIdeSupportMojo extends AbstractMojo implements LogEnabled
AbstractMojo has getLog()
LogEnabled has enableLogging()
Which logger should be used?
getLog() from AbstractMojo
or
Use the getLog() as that's the plugin api. Enable logging is Plexus
specific
so you should avoid that if you can.
Are you able to elaborate on why Plexus needs it?
I'm contemplating removing it to see what happens.
If you want to log in Plexus there is no static logging. You either
extend AbstractLogEnabled to have logging capabilities or you inject a
Logger.
Mojo has it's own logging implementation to decouple it from Plexus
even though the default implementation wraps a Plexus logger.
Therefore in a Mojo implementation don't use something Plexus specific.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org
Thanks,
Jason
----------------------------------------------------------
Jason van Zyl
Founder, Apache Maven
http://twitter.com/jvanzyl
----------------------------------------------------------
happiness is like a butterfly: the more you chase it, the more it will
elude you, but if you turn your attention to other things, it will come
and sit softly on your shoulder ...
-- Thoreau
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org