Breaking News
Home / Java / Java Snippets / How do disable low level logging for Apache Common Packages?

How do disable low level logging for Apache Common Packages?


Log4j can be configured via a properties file or an xml file. The below is an example of configuring Log4j using a properties file. Generally for simplicity the file name is called as but can be anything.

Typical Configuration



Disable Apache Low Level Logging

Adding the following in above to disable DEBUG or TRACE level logging originating from these Apache common packages.

To disable Apache Axis logging further add:

Like wise to disable Apache Struts logging you can add:

Please make sure this file is in the class path and specify the file name as a value to environment variable in your startup script , rest it will configure automatically.[pb_builder]

Check Also

How to progamatically get the Java version?

Snippet The key here is to use the system property java.version and get minor and …

Leave a Reply