Boris Zentner > Apache-PageKit-1.09_01 > Apache::ErrorReport

Download:
Apache-PageKit-1.09_01.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source   Latest Release: Apache-PageKit-1.18

NAME ^

Apache::ErrorReport - Error Reporting under mod_perl

SYNOPSIS ^

In your Apache configuration file:

  PerlModule Apache::ErrorReport
  PerlSetVar ErrorReportHandler email

In your perl code

  eval {
    &foo($bar);
  };
  if($@){
    Apache::ErrorReport::fatal($@);
  }

DESCRIPTION ^

Reports warnings and fatal errors to screen or e-mail. Includes detailed information including error message, call stack, uri, host, remote host, remote user, referrer, and Apache handler.

If ErrorReportHandler is set to display, errors will be displayed on the screen for easy debugging. This should be used in a development environment only.

If ErrorReportHandler is set to email, errors will be e-mailed to the site adminstrator as specified in the Apache ServerAdmin configuration directive. This should be used on a production site.

This modules uses $SIG{__WARN__} to display warning messages and the fatal method to display fatal messages.

AUTHOR ^

T.J. Mather (tjmather@anidea.com)

COPYRIGHT ^

Copyright (c) 2000, 2001, 2002 AnIdea Corporation. All rights Reserved. PageKit is a trademark of AnIdea Corporation.

LICENSE ^

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Ricoh Source Code Public License for more details.

You can redistribute this module and/or modify it only under the terms of the Ricoh Source Code Public License.

You should have received a copy of the Ricoh Source Code Public License along with this program; if not, obtain one at http://www.pagekit.org/license

syntax highlighting: