Return-Path: X-Original-To: apmail-cayenne-user-archive@www.apache.org Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 23AFC29BE for ; Thu, 5 May 2011 10:23:04 +0000 (UTC) Received: (qmail 110 invoked by uid 500); 5 May 2011 10:23:03 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 99987 invoked by uid 500); 5 May 2011 10:23:03 -0000 Mailing-List: contact user-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cayenne.apache.org Delivered-To: mailing list user@cayenne.apache.org Received: (qmail 99977 invoked by uid 99); 5 May 2011 10:23:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 May 2011 10:23:03 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [208.78.103.231] (HELO vorsha.objectstyle.org) (208.78.103.231) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 05 May 2011 10:22:56 +0000 Received: (qmail 5120 invoked from network); 5 May 2011 10:22:34 -0000 Received: from unknown (HELO ?IPv6:::1?) (127.0.0.1) by localhost with SMTP; 5 May 2011 10:22:34 -0000 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1084) Subject: Re: 3.1 logging and jetty From: Andrus Adamchik In-Reply-To: Date: Thu, 5 May 2011 13:22:33 +0300 Content-Transfer-Encoding: quoted-printable Message-Id: <209072C7-EE1A-4EF8-9F4A-153D6906DF52@objectstyle.org> References: To: user@cayenne.apache.org X-Mailer: Apple Mail (2.1084) X-Virus-Checked: Checked by ClamAV on apache.org Hi Tore, I am also using Jetty 7. My preference is to configure logging per app = (instead of per container), so I am not very familiar with per-container = options. I am using Log4J (you may use another logger, so configuration = advise will be different) and not using any defaults, configuring = logging "subsystem" explicitly in a startup servlet. So... In the app I'd place log4j.properties either under WEB-INF/ or = under WEB-INF/classes/ (doesn't mater as long as you can obtain a URL of = this file either via ServletContext or ClassLoader). Then load this file = into Properties object, then bootstrap Log4J PropertyConfigurator with = these Properties. After that you can turn off the new logger by adding = this line in log4j.properties: log4j.logger.org.apache.cayenne.log.CommonsJdbcEventLogger =3D WARN Andrus On May 5, 2011, at 1:00 PM, Tore Halset wrote: > Hello. >=20 > We are using 3.1M2 in jetty 7.3.0. For production I want to turn off = the logging done by CommonsJdbcEventLogger. I got this to work with = earlier versions of cayenne and a different servlet engine, but are = stuck now. My log files are growing with GBs each day. >=20 > I have tried this web page and added the log4j definition to = jetty/resources/log4j.properties > = https://cwiki.apache.org/confluence/display/CAYDOC30/Configuring+Logging = and > = trunk/docs/doc/src/main/resources/doc/Documentation/Cayenne%20Guide/Deploy= ment/Configuring%20Logging/index.html >=20 > Is this still valid for 3.1? >=20 > Regards, > - Tore.