stas 2004/09/24 13:53:08
Modified: src/docs/2.0/api/Apache Log.pod
Log:
fix the log_reason entry
Revision Changes Path
1.19 +17 -8 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.18
retrieving revision 1.19
diff -u -u -r1.18 -r1.19
--- Log.pod 24 Sep 2004 19:55:33 -0000 1.18
+++ Log.pod 24 Sep 2004 20:53:08 -0000 1.19
@@ -451,12 +451,12 @@
=head2 C<$r-E<gt>log_reason>
-This function provides a convenient way to log of errors in a
-preformatted way
+This function provides a convenient way to log errors in a
+preformatted way:
$r->log_reason($message);
$r->log_reason($message, $filename);
-
+
=over 4
=item obj: C<$r>
@@ -464,23 +464,32 @@
=item arg1: C<$message> ( string )
-what to log
+the message to log
=item opt arg2: C<$filename> ( string )
-where to report the error as coming from
+where to report the error as coming from (e.g. C<__FILE__>)
=item ret: no return value
-A sample log entry would look like:
+=item since: 1.99_17
+
+=back
+
+For example:
+
+ $r->log_reason("There is no enough data");
+
+will generate a log entry similar to the following:
+
+ [Fri Sep 24 11:58:36 2004] [error] access to /someuri
+ failed for 127.0.0.1, reason: There is no enough data.
- [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>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]