You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Hal Arnold <ha...@cj.com> on 2005/03/31 01:25:06 UTC

anybody know how to turn off the junit DEBUG?

I've tried to track down every instance of log4j.properties that I can
find to turn of Digester's DEBUG statements, but so far I've failed.
I've looked at Maven and the junit plugin to try to figure out how it
might work to enable the logging level. Ive tried to use:

log4j.logger.org.apache.commons.digester.Digester=INFO

But I can't seem to get these statements to quit. Any ideas?

 

 

test:single:

    [junit] Running com.blah.blah.content.ReceptorBooleanColumnTest

    [junit] 0 [main] DEBUG cj.ace.core.ContentRepository  - init()

    [junit] 15 [main] DEBUG cj.ace.core.ContentRepository  - config
file: ace-config.xml

    [junit] 62 [main] DEBUG org.apache.commons.digester.Digester  -
addRuleSet() with no namespace URI

    [junit] 78 [main] DEBUG cj.ace.core.ContentRepository  - created
file from URL

    [junit] 156 [main] DEBUG org.apache.commons.digester.Digester.sax  -
setDocumentLocator(org.apache.xerces.parsers.AbstractSAXParser$LocatorPr
oxy@f11404)

    [junit] 156 [main] DEBUG org.apache.commons.digester.Digester.sax  -
startDocument()

    [junit] 156 [main] DEBUG org.apache.commons.digester.Digester.sax  -
startPrefixMapping(xml,http://www.w3.org/XML/1998/namespace)

    [junit] 156 [main] DEBUG org.apache.commons.digester.Digester.sax  -
startPrefixMapping(xmlns,http://www.w3.org/2000/xmlns/)

    [junit] 156 [main] DEBUG org.apache.commons.digester.Digester.sax  -
startElement(,,ace)

    [junit] 156 [main] DEBUG org.apache.commons.digester.Digester  -
Pushing body text ''

    [junit] 156 [main] DEBUG org.apache.commons.digester.Digester  -
New match='ace'

    [junit] 156 [main] DEBUG org.apache.commons.digester.Digester  -
Fire begin() for
ObjectCreateRule[className=cj.ace.config.ContentRepositoryFactory,
attributeName=null]

    [junit] 156 [main] DEBUG org.apache.commons.digester.Digester  -
[ObjectCreateRule]{ace}New cj.ace.config.ContentRepositoryFactory

    [junit] 171 [main] DEBUG org.apache.commons.digester.Digester.sax  -
characters(

    [junit]   ) AND A THOUSAND OTHERS

 

/hba

    


Re: anybody know how to turn off the junit DEBUG?

Posted by Brett Porter <br...@gmail.com>.
http://svn.apache.org/repos/asf/maven/maven-1/core/trunk/src/conf/log4j.properties

If you are not forking unit tests, commons should come out at warn. If
you are forking unit tests, then it is however you have configured
log4j in your own test suite.

Cheers,
Brett


On Wed, 30 Mar 2005 15:25:06 -0800, Hal Arnold <ha...@cj.com> wrote:
> I've tried to track down every instance of log4j.properties that I can
> find to turn of Digester's DEBUG statements, but so far I've failed.
> I've looked at Maven and the junit plugin to try to figure out how it
> might work to enable the logging level. Ive tried to use:
> 
> log4j.logger.org.apache.commons.digester.Digester=INFO
> 
> But I can't seem to get these statements to quit. Any ideas?
> 
> test:single:
> 
>     [junit] Running com.blah.blah.content.ReceptorBooleanColumnTest
> 
>     [junit] 0 [main] DEBUG cj.ace.core.ContentRepository  - init()
> 
>     [junit] 15 [main] DEBUG cj.ace.core.ContentRepository  - config
> file: ace-config.xml
> 
>     [junit] 62 [main] DEBUG org.apache.commons.digester.Digester  -
> addRuleSet() with no namespace URI
> 
>     [junit] 78 [main] DEBUG cj.ace.core.ContentRepository  - created
> file from URL
> 
>     [junit] 156 [main] DEBUG org.apache.commons.digester.Digester.sax  -
> setDocumentLocator(org.apache.xerces.parsers.AbstractSAXParser$LocatorPr
> oxy@f11404)
> 
>     [junit] 156 [main] DEBUG org.apache.commons.digester.Digester.sax  -
> startDocument()
> 
>     [junit] 156 [main] DEBUG org.apache.commons.digester.Digester.sax  -
> startPrefixMapping(xml,http://www.w3.org/XML/1998/namespace)
> 
>     [junit] 156 [main] DEBUG org.apache.commons.digester.Digester.sax  -
> startPrefixMapping(xmlns,http://www.w3.org/2000/xmlns/)
> 
>     [junit] 156 [main] DEBUG org.apache.commons.digester.Digester.sax  -
> startElement(,,ace)
> 
>     [junit] 156 [main] DEBUG org.apache.commons.digester.Digester  -
> Pushing body text ''
> 
>     [junit] 156 [main] DEBUG org.apache.commons.digester.Digester  -
> New match='ace'
> 
>     [junit] 156 [main] DEBUG org.apache.commons.digester.Digester  -
> Fire begin() for
> ObjectCreateRule[className=cj.ace.config.ContentRepositoryFactory,
> attributeName=null]
> 
>     [junit] 156 [main] DEBUG org.apache.commons.digester.Digester  -
> [ObjectCreateRule]{ace}New cj.ace.config.ContentRepositoryFactory
> 
>     [junit] 171 [main] DEBUG org.apache.commons.digester.Digester.sax  -
> characters(
> 
>     [junit]   ) AND A THOUSAND OTHERS
> 
> /hba
> 
>

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