maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason van Zyl <>
Subject Re: AbstractMojo.getLog vs LogEnabled.enableLogging (found in maven-eclipse-plugin)
Date Fri, 27 Mar 2009 15:29:08 GMT

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.

> the logger passed in via enableLogging()
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:



Jason van Zyl
Founder,  Apache Maven

You are never dedicated to something you have complete confidence in.
No one is fanatically shouting that the sun is going to rise tomorrow.
They know it is going to rise tomorrow. When people are fanatically
dedicated to political or religious faiths or any other kind of
dogmas or goals, it's always because these dogmas or
goals are in doubt.

   -- Robert Pirzig, Zen and the Art of Motorcycle Maintenance

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message