I have certain packages (Mainly from external jars) that I’d like to disable there logging.
I am using:
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
for my logging.
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Please note that slf4j is only a logging facade to the actual logging mechanism (such as commons logging, logback or log4j). So, you need to look out for the configurations of the actual logging mechanism you are using.
You could increase the log level of those packages to ERROR or WARN, to hide them from usual INFO/DEBUG logging.