You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Stephen Clarke <an...@longusername.worldonline.co.uk> on 2002/02/10 07:59:21 UTC

Newbie question::Redundant logging...

Hello,
I have noticed that Cocoon writes the following four lines in my log file
every ten seconds. This is preventing my hard drive from spinning down and
unnecessarily busying the drive. Is there any way to stop it? My development
server is rarely visited, but I like to leave it running on minimum power
just in case.

DEBUG   (2002-02-10) 06:37.10:682   [root.sto] (Unknown-URI)
Unknown-thread/StoreJanitorImpl: getJVM().totalMemory()=10067968
DEBUG   (2002-02-10) 06:37.10:682   [root.sto] (Unknown-URI)
Unknown-thread/StoreJanitorImpl: getHeapsize()=60000000
DEBUG   (2002-02-10) 06:37.10:682   [root.sto] (Unknown-URI)
Unknown-thread/StoreJanitorImpl: getJVM().freeMemory()=935640
DEBUG   (2002-02-10) 06:37.10:682   [root.sto] (Unknown-URI)
Unknown-thread/StoreJanitorImpl: getFreememory()=1000000

Grateful for any pointers on how to stop this logging behavior, or whatever
it is.
--
Best,
Stephen Clarke


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


RE: Newbie question::Redundant logging...

Posted by Gerhard Froehlich <g-...@gmx.de>.
Hi,
http://xml.apache.org/cocoon/faq.html#faq-26


  ~Gerhard
 
-----------------------------------
Boren's Law: When in doubt, mumble. 
-----------------------------------

>-----Original Message-----
>From: Stephen Clarke [mailto:any@longusername.worldonline.co.uk]
>Sent: Sunday, February 10, 2002 7:59 AM
>To: Cocoon
>Subject: Newbie question::Redundant logging...
>
>
>Hello,
>I have noticed that Cocoon writes the following four lines in my log file
>every ten seconds. This is preventing my hard drive from spinning down and
>unnecessarily busying the drive. Is there any way to stop it? My development
>server is rarely visited, but I like to leave it running on minimum power
>just in case.
>
>DEBUG   (2002-02-10) 06:37.10:682   [root.sto] (Unknown-URI)
>Unknown-thread/StoreJanitorImpl: getJVM().totalMemory()=10067968
>DEBUG   (2002-02-10) 06:37.10:682   [root.sto] (Unknown-URI)
>Unknown-thread/StoreJanitorImpl: getHeapsize()=60000000
>DEBUG   (2002-02-10) 06:37.10:682   [root.sto] (Unknown-URI)
>Unknown-thread/StoreJanitorImpl: getJVM().freeMemory()=935640
>DEBUG   (2002-02-10) 06:37.10:682   [root.sto] (Unknown-URI)
>Unknown-thread/StoreJanitorImpl: getFreememory()=1000000
>
>Grateful for any pointers on how to stop this logging behavior, or whatever
>it is.
>--
>Best,
>Stephen Clarke
>
>
>---------------------------------------------------------------------
>Please check that your question has not already been answered in the
>FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
>To unsubscribe, e-mail: <co...@xml.apache.org>
>For additional commands, e-mail: <co...@xml.apache.org>
>
>

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: Newbie question::Redundant logging...

Posted by giacomo <gi...@apache.org>.
On Mon, 11 Feb 2002, Ugo Cei wrote:

> giacomo wrote:
>
>
> >       <!-- add this line -->
> >       <category name="store.janitor" log-level="ERROR"/>
>
> Shouldn't it be "store-janitor" instead? This is how DEBUG messages are
> tagged in my logs (using C2.0.1).

Oh, yes, sorry, your version is the correct one.

Giacomo


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: Newbie question::Redundant logging...

Posted by Ugo Cei <u....@cbim.it>.
giacomo wrote:


>       <!-- add this line -->
>       <category name="store.janitor" log-level="ERROR"/>

Shouldn't it be "store-janitor" instead? This is how DEBUG messages are 
tagged in my logs (using C2.0.1).

	Ugo

-- 
Ugo Cei - Consorzio di Bioingegneria e Informatica Medica
P.le Volontari del Sangue, 2 - 27100 Pavia - Italy
Phone: +39.0382.525100 - E-mail: u.cei@cbim.it


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: Newbie question::Redundant logging...

Posted by Stephen Clarke <an...@longusername.worldonline.co.uk>.
> Stephen Clarke wrote:
> > ----- Original Message -----
> > From: "giacomo" <gi...@apache.org>
> > To: "Cocoon" <co...@xml.apache.org>
> > Sent: Sunday, February 10, 2002 1:35 PM
> > Subject: Re: Newbie question::Redundant logging...
> >
> > >> On Sun, 10 Feb 2002, Stephen Clarke wrote:
> > > > I have noticed that Cocoon writes the following four lines in my log
> > file
> > > > every ten seconds. This is preventing my hard drive from spinning
down
> > and
> > > > unnecessarily busying the drive. Is there any way to stop it? My
> > development
> >
> > > > server is rarely visited, but I like to leave it running on minimum
> >
> > power
> >
> > > > just in case.
> > > >
> > > > DEBUG   (2002-02-10) 06:37.10:682   [root.sto] (Unknown-URI)
> > > > Unknown-thread/StoreJanitorImpl: getJVM().totalMemory()=10067968
> > > > DEBUG   (2002-02-10) 06:37.10:682   [root.sto] (Unknown-URI)
> > > > Unknown-thread/StoreJanitorImpl: getHeapsize()=60000000
> > > > DEBUG   (2002-02-10) 06:37.10:682   [root.sto] (Unknown-URI)
> > > > Unknown-thread/StoreJanitorImpl: getJVM().freeMemory()=935640
> > > > DEBUG   (2002-02-10) 06:37.10:682   [root.sto] (Unknown-URI)
> > > > Unknown-thread/StoreJanitorImpl: getFreememory()=1000000
> > >
>
> > This is how the categories node of my logkit.xconf looks. It hasn't
changed
> > since I installed Cocoon2.0.
>
>
> Logging categories changed a lot between 2.0 and 2.0.1. Giacomo described
> the procedure for 2.0.1.
>
> >   <categories>
> >     <category name="cocoon" log-level="DEBUG">
> >       <log-target id-ref="cocoon"/>
> >     </category>
> >     <category name="root" log-level="DEBUG">
> >       <log-target id-ref="root"/>
> >       <category name="store" log-level="DEBUG">
>        ^^^^^
>    Change ths to ERROR
>
> >          <log-target id-ref="components"/>
> >          <log-target id-ref="filter"/>
> >       </category>
> >
> >       <category name="xslt" log-level="DEBUG">
> >          <log-target id-ref="components"/>
> >          <log-target id-ref="filter"/>
> >       </category>
> >     </category>
> >   </categories>
> >
> > Where should I put that additional line? I would be grateful for any
> > further help. Thanks again.
>
Hi Martin,
Thanks. That worked well. {:-)
--
Best,
Stephen Clarke


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: Newbie question::Redundant logging...

Posted by Martin Holz <ho...@fiz-chemie.de>.
Hi,

Stephen Clarke wrote:
> ----- Original Message -----
> From: "giacomo" <gi...@apache.org>
> To: "Cocoon" <co...@xml.apache.org>
> Sent: Sunday, February 10, 2002 1:35 PM
> Subject: Re: Newbie question::Redundant logging...
>
> >> On Sun, 10 Feb 2002, Stephen Clarke wrote:
> > > I have noticed that Cocoon writes the following four lines in my log
> file
> > > every ten seconds. This is preventing my hard drive from spinning down
> and
> > > unnecessarily busying the drive. Is there any way to stop it? My
> development
>
> > > server is rarely visited, but I like to leave it running on minimum
>
> power
>
> > > just in case.
> > >
> > > DEBUG   (2002-02-10) 06:37.10:682   [root.sto] (Unknown-URI)
> > > Unknown-thread/StoreJanitorImpl: getJVM().totalMemory()=10067968
> > > DEBUG   (2002-02-10) 06:37.10:682   [root.sto] (Unknown-URI)
> > > Unknown-thread/StoreJanitorImpl: getHeapsize()=60000000
> > > DEBUG   (2002-02-10) 06:37.10:682   [root.sto] (Unknown-URI)
> > > Unknown-thread/StoreJanitorImpl: getJVM().freeMemory()=935640
> > > DEBUG   (2002-02-10) 06:37.10:682   [root.sto] (Unknown-URI)
> > > Unknown-thread/StoreJanitorImpl: getFreememory()=1000000
> >

> This is how the categories node of my logkit.xconf looks. It hasn't changed
> since I installed Cocoon2.0.


Logging categories changed a lot between 2.0 and 2.0.1. Giacomo described 
the procedure for 2.0.1.

>   <categories>
>     <category name="cocoon" log-level="DEBUG">
>       <log-target id-ref="cocoon"/>
>     </category>
>     <category name="root" log-level="DEBUG">
>       <log-target id-ref="root"/>
>       <category name="store" log-level="DEBUG">
				       ^^^^^	
				   Change ths to ERROR
	
>          <log-target id-ref="components"/>
>          <log-target id-ref="filter"/>
>       </category>
>
>       <category name="xslt" log-level="DEBUG">
>          <log-target id-ref="components"/>
>          <log-target id-ref="filter"/>
>       </category>
>     </category>
>   </categories>
>
> Where should I put that additional line? I would be grateful for any
> further help. Thanks again.


	Martin



--
Martin Holz  <ho...@fiz-chemie.de>  phone: 0049-30-39977 218 
FIZ CHEMIE BERLIN


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: Newbie question::Redundant logging...

Posted by Stephen Clarke <an...@longusername.worldonline.co.uk>.
----- Original Message -----
From: "giacomo" <gi...@apache.org>
To: "Cocoon" <co...@xml.apache.org>
Sent: Sunday, February 10, 2002 1:35 PM
Subject: Re: Newbie question::Redundant logging...


> On Sun, 10 Feb 2002, Stephen Clarke wrote:
>
> > Hello,
> > I have noticed that Cocoon writes the following four lines in my log
file
> > every ten seconds. This is preventing my hard drive from spinning down
and
> > unnecessarily busying the drive. Is there any way to stop it? My
development
> > server is rarely visited, but I like to leave it running on minimum
power
> > just in case.
> >
> > DEBUG   (2002-02-10) 06:37.10:682   [root.sto] (Unknown-URI)
> > Unknown-thread/StoreJanitorImpl: getJVM().totalMemory()=10067968
> > DEBUG   (2002-02-10) 06:37.10:682   [root.sto] (Unknown-URI)
> > Unknown-thread/StoreJanitorImpl: getHeapsize()=60000000
> > DEBUG   (2002-02-10) 06:37.10:682   [root.sto] (Unknown-URI)
> > Unknown-thread/StoreJanitorImpl: getJVM().freeMemory()=935640
> > DEBUG   (2002-02-10) 06:37.10:682   [root.sto] (Unknown-URI)
> > Unknown-thread/StoreJanitorImpl: getFreememory()=1000000
>
> Change the logkit.xconf file to:
>
>   ...
>   <categories>
>     <category name="core" log-level="DEBUG">
>       <log-target id-ref="core"/>
>       <log-target id-ref="error"/>
>
>       <!-- add this line -->
>       <category name="store.janitor" log-level="ERROR"/>
>
>    </category>
>    ...
>
> to get rid of those messages.
>
Hi,
Thanks to both Giacomo and Luca for taking the trouble to reply. I've made
all kinds of changes. Unfortunately, none seemed to work. My logkit.xconf
does not contain a <category name="core" line. I tried putting the category
child inside every parent category i have. I also tried adding the entire
sample you gave as a new category node. Earlier, I had changed the web.xml
<init-param> to FATAL-ERROR. So I tried changing it back again, but none of
these worked.

This is how the categories node of my logkit.xconf looks. It hasn't changed
since I installed Cocoon2.0.

  <categories>
    <category name="cocoon" log-level="DEBUG">
      <log-target id-ref="cocoon"/>
    </category>
    <category name="root" log-level="DEBUG">
      <log-target id-ref="root"/>
      <category name="store" log-level="DEBUG">
         <log-target id-ref="components"/>
         <log-target id-ref="filter"/>
      </category>

      <category name="xslt" log-level="DEBUG">
         <log-target id-ref="components"/>
         <log-target id-ref="filter"/>
      </category>
    </category>
  </categories>

Where should I put that additional line? I would be grateful for any further
help. Thanks again.
--
Stephen Clarke



---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: Newbie question::Redundant logging...

Posted by giacomo <gi...@apache.org>.
On Sun, 10 Feb 2002, Stephen Clarke wrote:

> Hello,
> I have noticed that Cocoon writes the following four lines in my log file
> every ten seconds. This is preventing my hard drive from spinning down and
> unnecessarily busying the drive. Is there any way to stop it? My development
> server is rarely visited, but I like to leave it running on minimum power
> just in case.
>
> DEBUG   (2002-02-10) 06:37.10:682   [root.sto] (Unknown-URI)
> Unknown-thread/StoreJanitorImpl: getJVM().totalMemory()=10067968
> DEBUG   (2002-02-10) 06:37.10:682   [root.sto] (Unknown-URI)
> Unknown-thread/StoreJanitorImpl: getHeapsize()=60000000
> DEBUG   (2002-02-10) 06:37.10:682   [root.sto] (Unknown-URI)
> Unknown-thread/StoreJanitorImpl: getJVM().freeMemory()=935640
> DEBUG   (2002-02-10) 06:37.10:682   [root.sto] (Unknown-URI)
> Unknown-thread/StoreJanitorImpl: getFreememory()=1000000

Change the logkit.xconf file to:

  ...
  <categories>
    <category name="core" log-level="DEBUG">
      <log-target id-ref="core"/>
      <log-target id-ref="error"/>

      <!-- add this line -->
      <category name="store.janitor" log-level="ERROR"/>

   </category>
   ...

to get rid of those messages.

Giacomo

>
> Grateful for any pointers on how to stop this logging behavior, or whatever
> it is.
> --
> Best,
> Stephen Clarke
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>
>
>
>


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


RE: Newbie question::Redundant logging...

Posted by Luca Morandini <l....@tin.it>.
Stephen,

you could change the log level from DEBUG to ERROR by editing logkit.xconf.
Check previuos postings on how to do this.

Mind, you will loose valuable logging information during development.

Best regards


---------------------------------------------
               Luca Morandini
               GIS Consultant
              lmorandini@ieee.org
http://utenti.tripod.it/lmorandini/index.html
---------------------------------------------


> -----Original Message-----
> From: Stephen Clarke [mailto:any@longusername.worldonline.co.uk]
> Sent: Sunday, February 10, 2002 7:59 AM
> To: Cocoon
> Subject: Newbie question::Redundant logging...
>
>
> Hello,
> I have noticed that Cocoon writes the following four lines in my log file
> every ten seconds. This is preventing my hard drive from spinning down and
> unnecessarily busying the drive. Is there any way to stop it? My
> development
> server is rarely visited, but I like to leave it running on minimum power
> just in case.
>
> DEBUG   (2002-02-10) 06:37.10:682   [root.sto] (Unknown-URI)
> Unknown-thread/StoreJanitorImpl: getJVM().totalMemory()=10067968
> DEBUG   (2002-02-10) 06:37.10:682   [root.sto] (Unknown-URI)
> Unknown-thread/StoreJanitorImpl: getHeapsize()=60000000
> DEBUG   (2002-02-10) 06:37.10:682   [root.sto] (Unknown-URI)
> Unknown-thread/StoreJanitorImpl: getJVM().freeMemory()=935640
> DEBUG   (2002-02-10) 06:37.10:682   [root.sto] (Unknown-URI)
> Unknown-thread/StoreJanitorImpl: getFreememory()=1000000
>
> Grateful for any pointers on how to stop this logging behavior,
> or whatever
> it is.
> --
> Best,
> Stephen Clarke
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>