Herbert Rosmanith wrote: >>You should use: >> >> Apache->server->log_error("test3.pm::BEGIN"); >> >>if you don't have $r, or $r->log_error() inside the handler. >> >>I don't think this is any different from 1.0 > > > it is, because with 1.0, I can happily use "Apache::log_error", which > I have done at numerous places.
try this patch (will be in cvs soon) Index: lib/Apache/compat.pm =================================================================== RCS file: /home/cvs/modperl-2.0/lib/Apache/compat.pm,v retrieving revision 1.60 diff -u -r1.60 compat.pm --- lib/Apache/compat.pm 4 Jun 2002 00:44:23 -0000 1.60 +++ lib/Apache/compat.pm 4 Jun 2002 12:37:46 -0000 @@ -104,6 +104,10 @@ exists_config_define(@_); } +sub log_error { + Apache->server->log_error(@_); +} + package Apache::Constants; use Apache::Const (); __________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]