Hi Nicolas,
from the log4j.properties
# --------------------------------------------------------- # M A V E N # --------------------------------------------------------- log4j.category.org.apache.maven=INFO
so I'm guessing the -X flag sets this category to DEBUG. The problem I have is that my tag classes are packaged 'com.codeczar....'
workaround - prefix the log classname with 'org.apache.maven'
private static final Log LOG = LogFactory.getLog(
"org.apache.maven." + ResolveDependenciesTag.class.getName());info statements are logged and debug statements are logged with -X
cheers Nathan
[EMAIL PROTECTED] wrote:
Hi Nathan,
Use common-loggin like it's done in the artifact-plugin for example : http://cvs.apache.org/viewcvs.cgi/maven-plugins/artifact/src/main/org/apache/maven/artifact/deployer/DefaultArtifactDeployer.java?rev=1.23&view=auto
Nicolas,
Nathan Coast <[EMAIL PROTECTED]> 12/10/2004 16:44 Veuillez r�pondre � "Maven Users List"
Pour : Maven Users List <[EMAIL PROTECTED]>
cc : Objet : Re: logging in jelly tags
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 <[EMAIL PROTECTED]>
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:[EMAIL PROTECTED] web: http://www.codeczar.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Nathan Coast Managing Director codeczar ltd mobile: (852) 9049 5581 email: mailto:[EMAIL PROTECTED] web: http://www.codeczar.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
