perl-docs-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From go...@apache.org
Subject cvs commit: modperl-docs/src/docs/2.0/user/porting compat.pod
Date Fri, 24 Sep 2004 19:55:33 GMT
gozer       2004/09/24 12:55:33

  Modified:    src/docs/2.0/api/Apache Log.pod
               src/docs/2.0/user/porting compat.pod
  Log:
  $r->log_reason has been ported and moved out of Apache::compat
  
  Revision  Changes    Path
  1.18      +34 -0     modperl-docs/src/docs/2.0/api/Apache/Log.pod
  
  Index: Log.pod
  ===================================================================
  RCS file: /home/cvs/modperl-docs/src/docs/2.0/api/Apache/Log.pod,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- Log.pod	17 Sep 2004 01:07:30 -0000	1.17
  +++ Log.pod	24 Sep 2004 19:55:33 -0000	1.18
  @@ -60,6 +60,7 @@
         $s->log_serror(Apache::Log::LOG_MARK, Apache::LOG_ERR,
                        APR::ENOTIME, "fatal error");
     
  +      $r->log_reason("fatal error");
         $r->warn('routine request warning');
         $s->warn('routine server warning');
     
  @@ -447,6 +448,39 @@
   
   
   
  +
  +=head2 C<$r-E<gt>log_reason>
  +
  +This function provides a convenient way to log of errors in a
  +preformatted way
  +
  +  $r->log_reason($message);
  +  $r->log_reason($message, $filename);
  +  
  +=over 4
  +
  +=item obj: C<$r>
  +( C<L<Apache::RequestRec object|docs::2.0::api::Apache::RequestRec>> )
  +
  +=item arg1: C<$message> ( string )
  +
  +what to log
  +
  +=item opt arg2: C<$filename> ( string )
  +
  +where to report the error as coming from
  +
  +=item ret: no return value
  +
  +A sample log entry would look like:
  +
  +  [Fri Sep 24 11:58:36 2004] [error] access to /someuri failed for 127.0.0.1, reason: $message
  +
  +
  +
  +
  +
  +  
   
   =head2 C<$r-E<gt>log_rerror>
   
  
  
  
  1.67      +0 -13     modperl-docs/src/docs/2.0/user/porting/compat.pod
  
  Index: compat.pod
  ===================================================================
  RCS file: /home/cvs/modperl-docs/src/docs/2.0/user/porting/compat.pod,v
  retrieving revision 1.66
  retrieving revision 1.67
  diff -u -r1.66 -r1.67
  --- compat.pod	17 Sep 2004 01:06:55 -0000	1.66
  +++ compat.pod	24 Sep 2004 19:55:33 -0000	1.67
  @@ -1024,19 +1024,6 @@
   See the L<Apache::RequestRec> manpage.
   
   
  -=head2 C<$r-E<gt>log_reason>
  -
  -C<$r-E<gt>log_reason> is not available in mod_perl 2.0 API. Use the
  -other standard logging functions provided by the
  -C<L<Apache::Log|docs::2.0::api::Apache::Log>>
  -module. For example:
  -
  -  $r->log_error("it works!");
  -
  -See the C<L<Apache::Log|docs::2.0::api::Apache::Log>>
  -manpage.
  -
  -
   =head2 C<$r-E<gt>register_cleanup>
   
   C<$r-E<gt>register_cleanup> has been replaced with
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-cvs-unsubscribe@perl.apache.org
For additional commands, e-mail: docs-cvs-help@perl.apache.org


Mime
View raw message