Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 49814 invoked from network); 7 Dec 2005 05:08:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Dec 2005 05:08:53 -0000 Received: (qmail 40718 invoked by uid 500); 7 Dec 2005 05:08:47 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 40565 invoked by uid 500); 7 Dec 2005 05:08:46 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 40373 invoked by uid 99); 7 Dec 2005 05:08:46 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Dec 2005 21:08:46 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [65.77.211.84] (HELO www2.kc.aoindustries.com) (65.77.211.84) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Dec 2005 21:08:43 -0800 Received: from fo2.kc.aoindustries.com (www2.kc.aoindustries.com [65.77.211.84]) by www2.kc.aoindustries.com (8.13.1/8.13.1) with ESMTP id jB758LFd030933 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 6 Dec 2005 23:08:21 -0600 Received: from localhost (localhost [[UNIX: localhost]]) by fo2.kc.aoindustries.com (8.13.1/8.13.1/Submit) id jB758LQ1030844 for dev@cocoon.apache.org; Tue, 6 Dec 2005 23:08:21 -0600 X-Authentication-Warning: fo2.kc.aoindustries.com: indexgeo set sender to crossley@apache.org using -f Date: Wed, 7 Dec 2005 16:08:02 +1100 From: David Crossley To: dev@cocoon.apache.org Subject: Re: dealing with log messages from ehcache Message-ID: <20051207050802.GA9885@igg.indexgeo.com.au> References: <20051202051641.GA23002@igg.indexgeo.com.au> <20051206031334.GB5137@igg.indexgeo.com.au> <4395BF04.6080603@apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4395BF04.6080603@apache.org> User-Agent: Mutt/1.4i X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Carsten Ziegeler wrote: > Cocoon 2.2 uses "running modes" for resolving properties. In the > WEB-INF/properties directory, you'll find two modes"prod" and "dev". By > default, 2.2 is running in dev mode which overrides all log levels > defined in the logkit config and sets them to DEBUG. > > You can either set the running mode to "prod" by setting the system > property -Dorg.apache.cocoon.mode=prod on startup, or you can remove the > org.apache.cocoon.override.loglevel=DEBUG from the core.properties file > in the "dev" directory. > > Note, that "dev" and "prod" are not predefined. So you can create a > "forrest-dev" directory underneath the properties directory and set the > running mode to "forrest-dev" etc. > > HTH > Carsten That certainly does help to explain the difference in log-levels. Thanks Carsten. Someone should document that :-) The original problem still remains. How does Cocoon manage to get logkit to handle the ehcache messages, whereas with Forrest they come to the console? -David > David Crossley wrote: > > Can anyone explain the following difference ... > > > > Doing 'cocoon.sh' with 2.2 trunk at my local working copy, > > with all default blocks. The logfile is filling up with > > EHCache debug messages into the logfile at > > build/webapp/WEB-INF/logs/cocoon.log > > > > At cocoon.zones.apache.org i cannot find any mention > > of ehcache in the logs of the trunk demo. > > > > Why is it so? > > > > -David > > > > David Crossley wrote: > > > >>As you know, at Apache Forrest we use Cocoon 2.2 trunk. > >> > >>A few months ago we upgraded our packaged Cocoon. > >>Now we get messages from EHCache coming to stdout > >>when we use our Jetty demo webapp. > >> > >>Of course tweaking WEB-INF/logkit.xconf has no effect > >>because they are coming to the console. > >> > >>However, when going to Cocoon trunk and using > >>'./cocoon.sh servlet' the ehcache messages are > >>properly handled by logkit.xconf > >> > >>So what is the difference? Are we missing some > >>configuration? > >> > >>Another issue is that in both Cocoon trunk and > >>at Forrest, the loglevel for these cache messages > >>are at DEBUG, so the logs fill up rapidly. How can > >>we set its loglevel to something else? > >> > >>-David