stas 2003/05/13 23:08:44 Modified: src/docs/2.0/api/Apache Log.pod Log: The filename and the line number of the caller are logged only if C<Apache::LOG_DEBUG> is used (because that's how Apache 2.0 logging mechanism works). Revision Changes Path 1.2 +8 -4 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.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- Log.pod 27 Jan 2003 04:05:12 -0000 1.1 +++ Log.pod 14 May 2003 06:08:44 -0000 1.2 @@ -12,7 +12,7 @@ my $s = Apache->server; $s->log_error("server: log_error"); - $s->log_serror(Apache::LOG_MARK, Apache::LOG_ERR, + $s->log_serror(__FILE__, __LINE__, Apache::LOG_ERR, 0, "log_serror logging at err level"); $s->log_serror(Apache::LOG_MARK, Apache::LOG_DEBUG, APR::ENOTIME, "debug print"); @@ -103,6 +103,10 @@ I<debug>. (either in the configuration file or using the C<$s-E<gt>loglevel()> method.) +The filename and the line number of the caller are logged only if +C<Apache::LOG_DEBUG> is used (because that's how Apache 2.0 logging +mechanism works). + Other constants: =over @@ -261,9 +265,9 @@ Though looking like a constant, this is a function, which returns a list of two items: C<(__FILE__, __LINE__)>, i.e. the file and the line -where the function was called from. - - +where the function was called from. It's mostly useful to be passed as +the first argument to those logging methods, expecting the filename +and the line number as the first arguments.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]