Return-Path: X-Original-To: apmail-cocoon-users-archive@www.apache.org Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 93E049C7E for ; Mon, 28 Nov 2011 19:54:04 +0000 (UTC) Received: (qmail 41859 invoked by uid 500); 28 Nov 2011 19:54:03 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 41810 invoked by uid 500); 28 Nov 2011 19:54:03 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 41803 invoked by uid 99); 28 Nov 2011 19:54:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Nov 2011 19:54:03 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [170.215.19.28] (HELO server.csparks.com) (170.215.19.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Nov 2011 19:53:55 +0000 Received: from Asus (asus.csparks.com [192.168.1.7]) (authenticated bits=0) by server.csparks.com (8.14.5/8.14.4) with ESMTP id pASJt5tv021654 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Mon, 28 Nov 2011 13:55:05 -0600 Message-ID: From: "Hugh Sparks" To: References: <32877133.post@talk.nabble.com> <4ED3427A.6070309@apache.org> <78B923726E7D59429936580CF127E943A1ED30DEB4@eu1rdcrdc1wx032.exi.nxp.com> <4ED35A06.8060009@oulu.fi> <4ED3AE08.2020808@apache.org> <376CEFDDA03040D79FC4061A96A1921E@Asus> In-Reply-To: <376CEFDDA03040D79FC4061A96A1921E@Asus> Subject: Re: [C3] Logging properties [SOLVED] Date: Mon, 28 Nov 2011 13:53:34 -0600 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0009_01CCADD5.1EEC1750" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Windows Mail 6.0.6002.18197 X-MimeOLE: Produced By Microsoft MimeOLE V6.1.7601.17609 X-Virus-Checked: Checked by ClamAV on apache.org ------=_NextPart_000_0009_01CCADD5.1EEC1750 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sorry! I discovered that in fact, both methods work equally well. My understanding of log tailing in Windows was defective. -Hugh Sparks ----- Original Message -----=20 From: Hugh Sparks=20 To: users cocoon.apache.org=20 Sent: Monday, November 28, 2011 11:27 AM Subject: [C3] Logging properties I'm having trouble changing the logback logging level. I want to temporarily switch the level to INFO. The logback.xml file contains this construct: ... I guess this sets the level to "WARN" unless the placeholder is = defined with some other value. So I'd like to alter the value of the = placeholder. First, I tried a properties file. On the source side, I put = it here: = src/main/resources/META-INF/cocoon/properties/cocoon-logback.properties Containing the expression: org.apache.cocoon.logback.loglevel=3DINFO This had no effect. I'm a little fuzzy on how cocoon properties files should be named and = positioned. (Pehaps someone will reply with a quick overview?) Next, I put the setting in applicationContext.xml: But I still don't see INFO messages after the initial (unavoidable?) = jetty startup outburst. Something else is turning off the INFO setting or my attempts are = misguided. Thanks to all who reply. -Hugh Sparks ------=_NextPart_000_0009_01CCADD5.1EEC1750 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Sorry!
 
I discovered that in fact, both methods = work=20 equally well.
My understanding of log tailing in = Windows was=20 defective.
 
-Hugh Sparks
 
----- Original Message -----
From:=20 Hugh = Sparks=20
Sent: Monday, November 28, 2011 = 11:27=20 AM
Subject: [C3] Logging = properties

I'm having trouble changing the logback = logging=20 level.
I want to temporarily switch the level = to=20 INFO.
 
The logback.xml file contains this construct:
 
    ...
   =20 <root>
        <level=20 = value=3D"${org.apache.cocoon.logback.loglevel:-WARN}"/>
  = ;      <appender-ref=20 ref=3D"CORE"/>
    </root>
 
I guess this sets the level to "WARN" = unless the=20 placeholder is defined with some other value. So I'd like to alter the = value=20 of the placeholder. First, I tried a = properties=20 file. On the source side, I put it here:
 
    =20 = src/main/resources/META-INF/cocoon/properties/cocoon-logback.properties
 
Containing the expression:
 
   =20 org.apache.cocoon.logback.loglevel=3DINFO
 
This had no effect.
I'm a little fuzzy on how cocoon properties = files=20 should be named and positioned. (Pehaps = someone will=20 reply with a quick overview?)
 
Next, I put the setting in=20 applicationContext.xml:
 
   =20 =  <configurator:settings>
     &nbs= p;     =20 <configurator:property
       =20        =20 name=3D"org.apache.cocoon.logback.loglevel"
       =20         value=3D"INFO"
       =20     />
   =20  </configurator:settings>
But I still don't see INFO = messages after=20 the initial (unavoidable?) jetty startup outburst.
 
Something else is turning off the INFO = setting or my=20 attempts are misguided.
 
Thanks to all who reply.
 
-Hugh Sparks
 
 
 
 
 
------=_NextPart_000_0009_01CCADD5.1EEC1750--