You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rivet-dev@tcl.apache.org by "Peter C. Lai" <pe...@simons-rock.edu> on 2009/10/27 14:23:03 UTC
how to use apache_log_error?
I noticed Karl added apache_log_error, how would I use that in an ErrorScript
in order to pass the entire interpreter error string to the apache log
(basically pass what rivet normally spits to the screen)? (Basically, can
I substitute some internal variable to the message argument of
apache_log_error?)
(There appears to be a dearth of documentation surrounding Rivet...)
- newb at rivet
--
===========================================================
Peter C. Lai | Bard College at Simon's Rock
Systems Administrator | 84 Alford Rd.
Information Technology Svcs. | Gt. Barrington, MA 01230 USA
peter AT simons-rock.edu | (413) 528-7428
===========================================================
---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: rivet-dev-help@tcl.apache.org
Re: how to use apache_log_error?
Posted by David Welton <da...@dedasys.com>.
> I noticed Karl added apache_log_error, how would I use that in an ErrorScript
> in order to pass the entire interpreter error string to the apache log
> (basically pass what rivet normally spits to the screen)? (Basically, can
> I substitute some internal variable to the message argument of
> apache_log_error?)
>
> (There appears to be a dearth of documentation surrounding Rivet...)
Looks like it's used like so:
apache_log_error loglevel message
So in order to catch an error message and spit it out elsewhere, you
can use the same variables that are in the default error handler:
proc handle_error {} {
global errorInfo
global errorOutbuf
puts <PRE>
puts "<HR>$errorInfo<HR>"
puts "<P><B>OUTPUT BUFFER:</B></P>"
puts $errorOutbuf
puts </PRE>
}
Does that work?
--
David N. Welton
http://www.welton.it/davidw/
http://www.dedasys.com/
Sent from Padua, Veneto, Italy
---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: rivet-dev-help@tcl.apache.org