how to use apache_log_error?

View: New views
2 Messages — Rating Filter:   Alert me  

how to use apache_log_error?

by Peter C. Lai-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...
For additional commands, e-mail: rivet-dev-help@...


Re: how to use apache_log_error?

by David Welton-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> 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@...
For additional commands, e-mail: rivet-dev-help@...