perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Perrin Harkins <per...@elem.com>
Subject Re: logging at startup
Date Wed, 10 Nov 2004 20:21:54 GMT
On Wed, 2004-11-10 at 10:11, Arshavir Grigorian wrote:
> The problem is that when the module is loaded there is no request object 
> and I am not sure how I can use log_error without it.

Are you in a request at the time when the error happens?  If so, you can
get a request object by calling Apache->request().  If not, you won't be
able to send any HTML anyway, so just print a message to STDERR.

- Perrin


-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Mime
View raw message