maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicolas De Loof <nicolas.del...@capgemini.com>
Subject Re: How to get logs from my plugin ?
Date Tue, 11 Oct 2005 14:36:47 GMT

I've found a (ugly ?) workarround :

I've made my ant task implement commons-logging Log and added a 
"setLog()' to override static Log instance.
My ant task so sets itself as logger for all my non-ant specific classes.

Thanks for quick replies !

Nico.

Jesse McConnell a écrit :

>m1? doh...I'll keep my mouth shut then :)
>
>sorry to lead you astray Nicolas
>
>On 10/11/05, Nicolas De Loof <nicolas.deloof@capgemini.com> wrote:
>  
>
>>I don't understand your reply.
>>My code uses commons-logging :
>>
>>private static Log log = LogFactory.getLog(OracleDesignerReverse.class);
>>...
>>log.debug("table " + name);
>>
>>It is used from a wrapper ant task set into a jelly script, and packaged
>>as a maven plugin.
>>
>>When I run maven, I get none of my debugs in any case
>>
>>
>>Jesse McConnell a écrit :
>>
>>    
>>
>>>getLog().debug("your info here");
>>>
>>>
>>>On 10/11/05, Nicolas De Loof <nicolas.deloof@capgemini.com> wrote:
>>>
>>>
>>>      
>>>
>>>>Hello,
>>>>
>>>>I've writen a code generator as a maven plugin. It uses commons-logging,
>>>>and I'd like to get debugs from my generator code.
>>>>
>>>>Running maven with -X doesn't trace anything usefull to me (only lot's
>>>>of "Class java.lang.Object loaded from parent loader"...)
>>>>
>>>>How to get my logs from maven ?
>>>>
>>>>Nico.
>>>>
>>>>
>>>>This message contains information that may be privileged or confidential
>>>>and is the property of the Capgemini Group. It is intended only for the
>>>>person to whom it is addressed. If you are not the intended recipient,
>>>>        
>>>>
>>you
>>    
>>
>>>>are not authorized to read, print, retain, copy, disseminate,
>>>>        
>>>>
>>distribute, or
>>    
>>
>>>>use this message or any part thereof. If you receive this message in
>>>>        
>>>>
>>error,
>>    
>>
>>>>please notify the sender immediately and delete all copies of this
>>>>        
>>>>
>>message.
>>    
>>
>>>>---------------------------------------------------------------------
>>>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>>For additional commands, e-mail: users-help@maven.apache.org
>>>>
>>>>
>>>>
>>>>
>>>>        
>>>>
>>>--
>>>jesse mcconnell
>>>
>>>
>>>
>>>      
>>>
>>This message contains information that may be privileged or confidential
>>and is the property of the Capgemini Group. It is intended only for the
>>person to whom it is addressed. If you are not the intended recipient, you
>>are not authorized to read, print, retain, copy, disseminate, distribute, or
>>use this message or any part thereof. If you receive this message in error,
>>please notify the sender immediately and delete all copies of this message.
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>>    
>>
>
>
>--
>jesse mcconnell
>
>  
>

This message contains information that may be privileged or confidential and is the property
of the Capgemini Group. It is intended only for the person to whom it is addressed. If you
are not the intended recipient,  you are not authorized to read, print, retain, copy, disseminate,
 distribute, or use this message or any part thereof. If you receive this  message in error,
please notify the sender immediately and delete all  copies of this message.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message