commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian K. Wallace" <br...@transmorphix.com>
Subject Re: [CONFIGURATION] Set logging level of the Configuration
Date Thu, 09 Mar 2006 08:12:49 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Christian Koncilia wrote:
> Hello,
> 
> I'm using Log4J and Commons.Configuration in a larger project.
> Everything works fine. However, every time I read an entry from my
> configuration file using Commons.Configuration, An entry in my log file
> is created. This entry is at the INFO level, and looks like this:
> 
> org.apache.commons.configuration.ConfigurationFactory - Trying to load
> configuration etc/xxxxx.properties
> 
> My question: is there a way to set the logging level of
> Commons.Configuration to ERROR or to disable the automatic logging done
> by Commons.Configuration completely?
> 
> Thanks
> 	Christian
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
> 
> 
> 
Although this is more a log4j question, yes - in your log4j.properties
(or however you configure your logger), you can specify the log level
for globally or specific packages.

see http://logging.apache.org/log4j/docs/manual.html under the
Configuration section (little more than half - maybe 3/4 the way down
the page). they use com.foo - you'd use org.apache.commons.configuration
(or some variant)

HTH

Brian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (MingW32)

iD8DBQFED+OBaCoPKRow/gARAveBAKCOQ1f/tR8a4nHDArfjnLJxIWMBRQCgjxmV
/tM0cUEcKoUcrBeTJm+6uyY=
=0Wgf
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message