Return-Path: Delivered-To: apmail-logging-log4cxx-user-archive@www.apache.org Received: (qmail 26387 invoked from network); 28 Aug 2006 08:45:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Aug 2006 08:45:46 -0000 Received: (qmail 86800 invoked by uid 500); 28 Aug 2006 08:45:45 -0000 Delivered-To: apmail-logging-log4cxx-user-archive@logging.apache.org Received: (qmail 86741 invoked by uid 500); 28 Aug 2006 08:45:45 -0000 Mailing-List: contact log4cxx-user-help@logging.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Log4CXX User" List-Id: Delivered-To: mailing list log4cxx-user@logging.apache.org Received: (qmail 86730 invoked by uid 99); 28 Aug 2006 08:45:44 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Aug 2006 01:45:44 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of peter.neu@gmx.net designates 213.165.64.20 as permitted sender) Received: from [213.165.64.20] (HELO mail.gmx.net) (213.165.64.20) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 28 Aug 2006 01:45:44 -0700 Received: (qmail invoked by alias); 28 Aug 2006 08:45:22 -0000 Received: from ktbl.heagmedianet.de (EHLO PCMELZER) [213.188.107.46] by mail.gmx.net (mp031) with SMTP; 28 Aug 2006 10:45:22 +0200 X-Authenticated: #17979613 From: "Peter Neu" To: Subject: HowTo Disable Logging Output for classes using commons.logging Date: Mon, 28 Aug 2006 10:45:01 +0200 Message-ID: <005f01c6ca7e$401de970$bcc8a8c0@PCMELZER> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <1156754044.76672.ezmlm@logging.apache.org> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 thread-index: AcbKfLiwLwrVigRGRXqse+bxGCZpcwAAFGAg X-Y-GMX-Trusted: 0 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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