You have to set the additivity property of the quartz- and apache-Logger to 
false. Otherwise a log request would  climb up the hierarchy until root logger. 
I am not quite shure about syntax in property file (I work with xml), something 
like log4j.logger.org.quartz.additivity=false. You have to check it out.
Heri

> -----Original Message-----
> From: Peter Neu [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, August 29, 2006 8:15 AM
> To: [email protected]
> Subject: [SPAM (Bayesain Analysis)] - HowTo Disable Logging Output for
> classes using commons.logging - Bayesian Filter detected spam
> 
> 
> Hello,
> 
> 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:
> 
> http://jakarta.apache.org/commons/logging/guide.html#Configuring_Log4J
> 
> So I modified my log4j.properties in this way:
> 
> log4j.rootLogger=INFO, logfile,cons
> log4j.appender.cons=org.apache.log4j.ConsoleAppender
> log4j.appender.logfile=org.apache.log4j.RollingFileAppender
> 
> log4j.appender.logfile.File=/usr/local/log/accounts.log
> log4j.appender.logfile.MaxBackupIndex=5
> 
> --> log4j.logger.org.quartz=ERROR
> log4j.logger.org.apache=ERROR
> log4j.appender.cons.Threshold=INFO
> 
> 
> But still I get the INFO messages in the server log. What do 
> I have to do?
> 
> Cheers,
> Pete
> 
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to