You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Christian Haul <ha...@dvs1.informatik.tu-darmstadt.de> on 2002/06/26 23:31:26 UTC

flowscript / logging

Ovidiu,

while starting to catch up with the flowscript I expected to write logging messages
by using
	log.debug("some message. var a="+a);
and that to show up in flow.log. But I seem not to be able to find the message. Even
grep'ed cocoon/WEB-INF/logs and $CATALINA_HOME/logs for it.

TIA

	Chris.

-- 
C h r i s t i a n       H a u l
haul@informatik.tu-darmstadt.de
    fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: flowscript / logging

Posted by Ovidiu Predescu <ov...@apache.org>.
On 6/27/02 1:10 AM, "Christian Haul" <ha...@dvs1.informatik.tu-darmstadt.de>
wrote:

> On 26.Jun.2002 -- 11:45 PM, Ovidiu Predescu wrote:
>> On 6/26/02 2:31 PM, "Christian Haul" <ha...@dvs1.informatik.tu-darmstadt.de>
>> wrote:
>> 
>> If you run the servlet container in a terminal, you can also use
>> print(string), it will print things in the terminal, which is easier to
>> debug.
>> 
>> Please let me know if it works for you.
> 
> It looks like I was bitten by continuing unmodified code / no
> automatic reloading of the script. After stopping / restarting
> catalina both messages (print & log.debug) show up.

To script is reloaded only when you invoke a top level function in it. If
you simply restart a continuation, this will use the old code loaded by the
code.

Regards,
-- 
Ovidiu Predescu <ov...@apache.org>
http://www.geocities.com/SiliconValley/Monitor/7464/ (Apache, GNU, Emacs...)



---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: flowscript / logging

Posted by Christian Haul <ha...@dvs1.informatik.tu-darmstadt.de>.
On 26.Jun.2002 -- 11:45 PM, Ovidiu Predescu wrote:
> Hi Chris,
> 
> On 6/26/02 2:31 PM, "Christian Haul" <ha...@dvs1.informatik.tu-darmstadt.de>
> wrote:
> 
> > while starting to catch up with the flowscript I expected to write logging
> > messages
> > by using
> > log.debug("some message. var a="+a);
> > and that to show up in flow.log. But I seem not to be able to find the
> > message. Even
> > grep'ed cocoon/WEB-INF/logs and $CATALINA_HOME/logs for it.
> 
> I don't know what's going on, the log should be created in WEB-INF/logs.
> Unless somebody removed the entry from the logkit.xconf.
> 
> If you run the servlet container in a terminal, you can also use
> print(string), it will print things in the terminal, which is easier to
> debug.
> 
> Please let me know if it works for you.

It looks like I was bitten by continuing unmodified code / no
automatic reloading of the script. After stopping / restarting
catalina both messages (print & log.debug) show up.

Thanks.

	Chris.

-- 
C h r i s t i a n       H a u l
haul@informatik.tu-darmstadt.de
    fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: flowscript / logging

Posted by Ovidiu Predescu <ov...@apache.org>.
Hi Chris,

On 6/26/02 2:31 PM, "Christian Haul" <ha...@dvs1.informatik.tu-darmstadt.de>
wrote:

> while starting to catch up with the flowscript I expected to write logging
> messages
> by using
> log.debug("some message. var a="+a);
> and that to show up in flow.log. But I seem not to be able to find the
> message. Even
> grep'ed cocoon/WEB-INF/logs and $CATALINA_HOME/logs for it.

I don't know what's going on, the log should be created in WEB-INF/logs.
Unless somebody removed the entry from the logkit.xconf.

If you run the servlet container in a terminal, you can also use
print(string), it will print things in the terminal, which is easier to
debug.

Please let me know if it works for you.

Regards,
-- 
Ovidiu Predescu <ov...@apache.org>
http://www.geocities.com/SiliconValley/Monitor/7464/ (Apache, GNU, Emacs...)



---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org