I you implement LogEnabled or extend AbstractLogEnabled (I prefer the
former), plexus will populate the logger when it initializes the
component, prior to use.
HTH,
-john
On Jul 13, 2007, at 9:13 AM, Mark Hobson wrote:
Hi,
I want to add some debug logging to the dependency tree shared
component which is used in the dependency:tree goal. Is the preferred
way for the component to extend LogEnabled, and if so, is there any
way of getting the log set automatically by plexus? The alternative
would be for the mojo to explicit set the log itself, but then I'd
have to adapt the mojo Log to a plexus Logger.
Cheers,
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---
John Casey
Committer and PMC Member, Apache Maven
mail: jdcasey at commonjava dot org
blog: http://www.ejlife.net/blogs/john