You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Nicolas De Loof <ni...@capgemini.com> on 2005/10/11 16:05:04 UTC

How to get logs from my plugin ?

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


Re: How to get logs from my plugin ?

Posted by Nicolas De Loof <ni...@capgemini.com>.
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 <ni...@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 <ni...@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


Re: How to get logs from my plugin ?

Posted by Jesse McConnell <je...@gmail.com>.
m1? doh...I'll keep my mouth shut then :)

sorry to lead you astray Nicolas

On 10/11/05, Nicolas De Loof <ni...@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 <ni...@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

Re: How to get logs from my plugin ?

Posted by Nicolas De Loof <ni...@capgemini.com>.
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 <ni...@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


Re: How to get logs from my plugin ?

Posted by Brett Porter <br...@gmail.com>.
I'm almost certain Nicolas was referring to a Maven 1.x plugin.

There unfortunately isn't an easy way other than hooking into the
log4j instance to get it to output your log statements.

- Brett

On 10/12/05, Jesse McConnell <je...@gmail.com> wrote:
> getLog().debug("your info here");
>
>
> On 10/11/05, Nicolas De Loof <ni...@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
>
>

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


Re: How to get logs from my plugin ?

Posted by Jesse McConnell <je...@gmail.com>.
getLog().debug("your info here");


On 10/11/05, Nicolas De Loof <ni...@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