You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Nathan Coast <na...@codeczar.com> on 2004/10/12 10:46:44 UTC

logging in jelly tags

Hi,

I have a couple of Jelly tag classes, what's the 'correct' way write log 
statements in tag classes.  e.g.
1) info - info that is always logged to stdout
2) debug - info that is displayed with maven -X

cheers
Nathan
-- 
Nathan Coast
Managing Director
codeczar ltd
mobile: (852) 9049 5581
email:  mailto:nathan@codeczar.com
web:    http://www.codeczar.com

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


Re: logging in jelly tags

Posted by Nathan Coast <na...@codeczar.com>.
sorry, didn't ask my question very well :)

what code do I have to write in the tags class?  typical log4j / 
commons-logging?

Log myLog = LogFactory.getLog(TagClass.class);

myLog.debug("foobar");
myLog.info("whizbang");

or is there some logger I can call directly like the log() method 
available to ant tasks?

cheers
Nathan

Brett Porter wrote:
> correct.
> 
> http://cvs.apache.org/viewcvs.cgi/maven/src/conf/log4j.properties?rev=1.17&view=markup
> 
> 
> On Tue, 12 Oct 2004 16:46:44 +0800, Nathan Coast <na...@codeczar.com> wrote:
> 
>>Hi,
>>
>>I have a couple of Jelly tag classes, what's the 'correct' way write log
>>statements in tag classes.  e.g.
>>1) info - info that is always logged to stdout
>>2) debug - info that is displayed with maven -X
>>
>>cheers
>>Nathan
>>--
>>Nathan Coast
>>Managing Director
>>codeczar ltd
>>mobile: (852) 9049 5581
>>email:  mailto:nathan@codeczar.com
>>web:    http://www.codeczar.com
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>For additional commands, e-mail: users-help@maven.apache.org
>>
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

-- 
Nathan Coast
Managing Director
codeczar ltd
mobile: (852) 9049 5581
email:  mailto:nathan@codeczar.com
web:    http://www.codeczar.com

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


Re: logging in jelly tags

Posted by Brett Porter <br...@gmail.com>.
correct.

http://cvs.apache.org/viewcvs.cgi/maven/src/conf/log4j.properties?rev=1.17&view=markup


On Tue, 12 Oct 2004 16:46:44 +0800, Nathan Coast <na...@codeczar.com> wrote:
> Hi,
> 
> I have a couple of Jelly tag classes, what's the 'correct' way write log
> statements in tag classes.  e.g.
> 1) info - info that is always logged to stdout
> 2) debug - info that is displayed with maven -X
> 
> cheers
> Nathan
> --
> Nathan Coast
> Managing Director
> codeczar ltd
> mobile: (852) 9049 5581
> email:  mailto:nathan@codeczar.com
> web:    http://www.codeczar.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
>

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