Apache::ErrorReport - Error Reporting under mod_perl
In your Apache configuration file:
PerlModule Apache::ErrorReport PerlSetVar ErrorReportHandler email
In your perl code
eval { &foo($bar); }; if($@){ Apache::ErrorReport::fatal($@); }
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.
ErrorReportHandler
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.
ServerAdmin
This modules uses $SIG{__WARN__} to display warning messages and the fatal method to display fatal messages.
fatal
T.J. Mather (tjmather@anidea.com)
Copyright (c) 2000, 2001, 2002 AnIdea Corporation. All rights Reserved. PageKit is a trademark of AnIdea Corporation.
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
To install Apache::PageKit, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Apache::PageKit
CPAN shell
perl -MCPAN -e shell install Apache::PageKit
For more information on module installation, please visit the detailed CPAN module installation guide.