perl-docs-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject cvs commit: modperl-docs/src/docs/2.0/api/Apache Log.pod
Date Fri, 17 Sep 2004 01:06:03 GMT
stas        2004/09/16 18:06:03

  Modified:    src/docs/2.0/api/Apache Log.pod
  Log:
  sort methods
  
  Revision  Changes    Path
  1.16      +73 -59    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.15
  retrieving revision 1.16
  diff -u -u -r1.15 -r1.16
  --- Log.pod	17 Sep 2004 00:00:34 -0000	1.15
  +++ Log.pod	17 Sep 2004 01:06:03 -0000	1.16
  @@ -7,8 +7,8 @@
   
   =head1 Synopsis
   
  -  #in startup.pl
  -  #-------------
  +  # in startup.pl
  +  #--------------
     use Apache::Log;
     
     use Apache::Const -compile => qw(OK :log);
  @@ -25,8 +25,8 @@
     
     Apache::ServerRec::warn("routine warning");
   
  -  #in a handler
  -  #------------
  +  # in a handler
  +  #-------------
     package Foo;
     
     use strict;
  @@ -59,14 +59,18 @@
     
         $s->log_serror(Apache::Log::LOG_MARK, Apache::LOG_ERR,
                        APR::ENOTIME, "fatal error");
  -
  +  
         $r->warn('routine request warning');
         $s->warn('routine server warning');
  -
  +  
         return Apache::OK;
     }
     1;
   
  +  # in a registry script
  +  # httpd.conf: PerlOptions +GlobalRequest
  +  use Apache::ServerRec qw(warn); # override warn locally
  +  warn "my warning";
   
   
   =head1 Description
  @@ -232,6 +236,31 @@
   =head1 Server Logging Methods
   
   
  +=head2 C<$s-E<gt>log>
  +
  +get a log handle which can be used to L<log messages of different
  +levels|/LogLevel_Methods>.
  +
  +  my $slog = $s->log;
  +
  +=over 4
  +
  +=item obj: C<$s>
  +( C<L<Apache::ServerRec object|docs::2.0::api::Apache::ServerRec>> )
  +
  +=item ret: C<$slog> ( C<Apache::Log::Server> object )
  +
  +C<Apache::Log::Server> object to be used with L<LogLevel
  +methods|/LogLevel_Methods>.
  +
  +=item since: 1.99_12
  +
  +=back
  +
  +
  +
  +
  +
   
   =head2 C<$s-E<gt>log_error>
   
  @@ -318,27 +347,6 @@
   
   
   
  -=head2 C<$s-E<gt>log>
  -
  -get a log handle which can be used to L<log messages of different
  -levels|/LogLevel_Methods>.
  -
  -  my $slog = $s->log;
  -
  -=over 4
  -
  -=item obj: C<$s>
  -( C<L<Apache::ServerRec object|docs::2.0::api::Apache::ServerRec>> )
  -
  -=item ret: C<$slog> ( C<Apache::Log::Server> object )
  -
  -C<Apache::Log::Server> object to be used with L<LogLevel
  -methods|/LogLevel_Methods>.
  -
  -=item since: 1.99_12
  -
  -=back
  -
   
   
   =head2 C<$s-E<gt>warn>
  @@ -380,6 +388,33 @@
   
   
   
  +
  +=head2 C<$r-E<gt>log>
  +
  +get a log handle which can be used to L<log messages of different
  +levels|/LogLevel_Methods>.
  +
  +  $rlog = $r->log;
  +
  +=over 4
  +
  +=item obj: C<$r> 
  +( C<L<Apache::RequestRec object|docs::2.0::api::Apache::RequestRec>> )
  +
  +=item ret: C<$rlog> ( C<Apache::Log::Request> object )
  +
  +C<Apache::Log::Request> object to be used with L<LogLevel
  +methods|/LogLevel_Methods>.
  +
  +=item since: 1.99_12
  +
  +=back
  +
  +
  +
  +
  +
  +
   =head2 C<$r-E<gt>log_error>
   
   just logs the supplied message (similar to
  @@ -442,30 +477,6 @@
   
   
   
  -=head2 C<$r-E<gt>log>
  -
  -get a log handle which can be used to L<log messages of different
  -levels|/LogLevel_Methods>.
  -
  -  $rlog = $r->log;
  -
  -=over 4
  -
  -=item obj: C<$r> 
  -( C<L<Apache::RequestRec object|docs::2.0::api::Apache::RequestRec>> )
  -
  -=item ret: C<$rlog> ( C<Apache::Log::Request> object )
  -
  -C<Apache::Log::Request> object to be used with L<LogLevel
  -methods|/LogLevel_Methods>.
  -
  -=item since: 1.99_12
  -
  -
  -=back
  -
  -
  -
   =head2 C<$r-E<gt>warn>
   
     $r->warn(@warnings);
  @@ -542,10 +553,6 @@
   
   
   
  -=head2 C<emerg>
  -
  -See L<LogLevel Methods|/LogLevel_Methods>.
  -
   
   
   =head2 C<alert>
  @@ -560,32 +567,39 @@
   
   
   
  -=head2 C<error>
  +=head2 C<debug>
   
   See L<LogLevel Methods|/LogLevel_Methods>.
   
   
   
  -=head2 C<warn>
  +=head2 C<emerg>
   
   See L<LogLevel Methods|/LogLevel_Methods>.
   
   
   
  -=head2 C<notice>
  +=head2 C<error>
   
   See L<LogLevel Methods|/LogLevel_Methods>.
   
   
  +
   =head2 C<info>
   
   See L<LogLevel Methods|/LogLevel_Methods>.
   
   
  -=head2 C<debug>
  +
  +=head2 C<notice>
   
   See L<LogLevel Methods|/LogLevel_Methods>.
   
  +
  +
  +=head2 C<warn>
  +
  +See L<LogLevel Methods|/LogLevel_Methods>.
   
   
   
  
  
  

---------------------------------------------------------------------
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