I use log4j-1.2.8. In my new project I use quartz. Quartz gives me a lot of logging messages that I don't need. It's especially dangerous because It writes all of this output to the log file of the server.
I would like to get rid of this. The logging of quartz uses commons logging which can be manipulated through log4j says this resource:
You might have to set the additivity=false on the org.quartz category, so that the log messages are not propagated to the parent appenders. I have rarely used log4j.properties file for configuring log4j, so i dont have much idea how can achieve that through the properties file. But, here's a log4j.xml file that i would use to achieve the same effect:
Note that i have set the addivity=false on the category org.quartz
doesn't make any difference for me if the configuration is .properties or xml. I tried your file and replaced it for the properties file. But it didn't have any effect. Seems like something is still missing. Any idea what to do?
Thanks for having a second look at the problem. It seems that quartz has a strange way to do its logging. After I inserted the new configuration nothing changed so far. I still get lots of log info messages like this:
I have a similar issue where I want to turn-off all logging except the logging for my own classes. When I fire a request at my WEB Service, I get the logging below in addition to my own logging. How can I turn-off this "extra" logging?