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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to