Boris Zentner wrote:
1. Problem Description:
$r->warn did not work. As described on http://perl.apache.org/docs/2.0/api/Apache/Log.html. Perhaps it is a error in the docs.
mp2doc Apache::Log No documentation found for "Apache::Log"
package LogHandler; use Apache::Log(); use Apache::RequestRec (); use Apache::Const -compile => 'OK'; sub handler : method { my ( $c, $r ) = @_; $r->warn("works"); Apache::OK; }
[Sun Apr 18 12:51:19 2004] [error] [client 127.0.0.1] Can't locate object method "warn" via package "Apache::RequestRec" at /tmp/t/blib/lib/LogHandler.pm line 7.
Thanks Boris,
Once I'm done with APR::Socket API I will move onto the APR::Log and fix it.
Sorry, it took me a long time to finish off other things. Now I'm working on Apache::Log. To answer your question, there is no such thing as $r->warn and the example in synopsis is a mistake. I'll remove it shortly.
-- __________________________________________________________________ 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]
