java - How can I disable Apache Commons / Log4J logging in third party libraries? -


is there apache commons / log4j logging api method can used disable logging completely, loggers in third party libraries?

background: use java.util.logging in glassfish v3 web application. however, third party library in web app uses log4j logging , apache commons logging. save resources, logging should minimized or switched off.

edit log4j configuration , set logging level error or fatal

example hibernate:

log4j.logger.org.hibernate=error 

this dwarf logging output zero, leaving critical error messages.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -