geoff 2004/01/19 08:27:09 Modified: src/docs/2.0/api/Apache Log.pod Log: Apache::LOG_MARK() is now Apache::Log::LOG_MARK Revision Changes Path 1.7 +16 -16 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.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- Log.pod 19 Jan 2004 15:56:01 -0000 1.6 +++ Log.pod 19 Jan 2004 16:27:09 -0000 1.7 @@ -19,7 +19,7 @@ $s->log_error("server: log_error"); $s->log_serror(__FILE__, __LINE__, Apache::LOG_ERR, APR::SUCCESS, "log_serror logging at err level"); - $s->log_serror(Apache::LOG_MARK, Apache::LOG_DEBUG, + $s->log_serror(Apache::Log::LOG_MARK, Apache::LOG_DEBUG, APR::ENOTIME, "debug print"); Apache::Server->log_error("routine warning"); @@ -52,13 +52,13 @@ my $s = $r->server; $s->log_error("server: log_error"); - $r->log_rerror(Apache::LOG_MARK, Apache::LOG_DEBUG, + $r->log_rerror(Apache::Log::LOG_MARK, Apache::LOG_DEBUG, APR::ENOTIME, "in debug"); - $s->log_serror(Apache::LOG_MARK, Apache::LOG_INFO, + $s->log_serror(Apache::Log::LOG_MARK, Apache::LOG_INFO, APR::SUCESS, "server info"); - $s->log_serror(Apache::LOG_MARK, Apache::LOG_ERR, + $s->log_serror(Apache::Log::LOG_MARK, Apache::LOG_ERR, APR::ENOTIME, "fatal error"); $s->warn('routine server warning'); @@ -79,12 +79,12 @@ of the level I<warning> or higher (I<err>, I<crit>, I<elert> and I<emerg>) will be logged. Therefore this: - $r->log_rerror(Apache::LOG_MARK, Apache::LOG_WARNING, + $r->log_rerror(Apache::Log::LOG_MARK, Apache::LOG_WARNING, APR::ENOTIME, "warning!"); will log the message, but this one won't: - $r->log_rerror(Apache::LOG_MARK, Apache::LOG_INFO, + $r->log_rerror(Apache::Log::LOG_MARK, Apache::LOG_INFO, APR::ENOTIME, "just an info"); It will be logged only if the server log level is set to I<info> or @@ -161,7 +161,7 @@ handler to determine whether this text should be sent back to the client. For example: - $r->log_rerror(Apache::LOG_MARK, Apache::LOG_ERR|Apache::LOG_TOCLIENT, + $r->log_rerror(Apache::Log::LOG_MARK, Apache::LOG_ERR|Apache::LOG_TOCLIENT, APR::ENOTIME, "request log_rerror"); now the log message can be retrieved via: @@ -176,7 +176,7 @@ is useful for startup message where no timestamps, logging level is wanted. For example: - $s->log_serror(Apache::LOG_MARK, Apache::LOG_INFO, + $s->log_serror(Apache::Log::LOG_MARK, Apache::LOG_INFO, APR::SUCCESS, "This log message comes with a header"); will print: @@ -185,7 +185,7 @@ whereas, when C<Apache::LOG_STARTUP> is binary ORed as in: - $s->log_serror(Apache::LOG_MARK, Apache::LOG_INFO|Apache::LOG_STARTUP, + $s->log_serror(Apache::Log::LOG_MARK, Apache::LOG_INFO|Apache::LOG_STARTUP, APR::SUCCESS, "This log message comes with no header"); then the logging will be: @@ -263,10 +263,10 @@ For example: - $s->log_serror(Apache::LOG_MARK, Apache::LOG_ERR, + $s->log_serror(Apache::Log::LOG_MARK, Apache::LOG_ERR, APR::SUCCESS, "log_serror logging at err level"); - $s->log_serror(Apache::LOG_MARK, Apache::LOG_DEBUG, + $s->log_serror(Apache::Log::LOG_MARK, Apache::LOG_DEBUG, APR::ENOTIME, "debug print"); @@ -337,10 +337,10 @@ For example: - $r->log_rerror(Apache::LOG_MARK, Apache::LOG_ERR, + $r->log_rerror(Apache::Log::LOG_MARK, Apache::LOG_ERR, APR::SUCCESS, "log_rerror logging at err level"); - $r->log_rerror(Apache::LOG_MARK, Apache::LOG_DEBUG, + $r->log_rerror(Apache::Log::LOG_MARK, Apache::LOG_DEBUG, APR::ENOTIME, "debug print"); @@ -455,9 +455,9 @@ =head1 General Functions -=head2 C<Apache::LOG_MARK> +=head2 C<Apache::Log::LOG_MARK> - ($file, $line) = Apache::LOG_MARK(); + ($file, $line) = Apache::Log::LOG_MARK(); 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 @@ -499,7 +499,7 @@ is the same as: - $s->log_error(Apache::LOG_MARK, Apache::LOG_WARNING, + $s->log_error(Apache::Log::LOG_MARK, Apache::LOG_WARNING, APR::SUCCESS, @warnings) For example:
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]