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 -

java - where to store the user credentials in an enterprise application(EAI)? -

openxml - Programmatically format a date in an excel sheet using Office Open Xml SDK -