=head1 NAME
Log::Report::Dispatcher::Perl -
send
messages to
die
and
warn
=head1 INHERITANCE
Log::Report::Dispatcher::Perl
is a Log::Report::Dispatcher
=head1 SYNOPSIS
dispatcher Log::Report::Dispatcher::
Perl
=>
'default'
,
accept
=>
'NOTICE-'
;
dispatcher
close
=>
'default'
;
=head1 DESCRIPTION
Ventilate the problem reports via the standard Perl error mechanisms:
C<
die
()>, C<
warn
()>, and C<
print
()>. There can be only one such dispatcher
(per thread), because once C<
die
()> is called, we are not able to
return
.
Therefore, this dispatcher will always be called
last
.
In the early releases of Log::Report, it tried to simulate the behavior
of
warn
and
die
using STDERR and
exit
; however: that is not possible.
=head1 METHODS
=head2 Constructors
=over 4
=item
$obj
-E<gt>B<
close
>()
See L<Log::Report::Dispatcher/
"Constructors"
>
=item Log::Report::Dispatcher::Perl-E<gt>B<new>(TYPE, NAME, OPTIONS)
See L<Log::Report::Dispatcher/
"Constructors"
>
=back
=head2 Accessors
=over 4
=item
$obj
-E<gt>B<isDisabled>()
See L<Log::Report::Dispatcher/
"Accessors"
>
=item
$obj
-E<gt>B<mode>()
See L<Log::Report::Dispatcher/
"Accessors"
>
=item
$obj
-E<gt>B<name>()
See L<Log::Report::Dispatcher/
"Accessors"
>
=item
$obj
-E<gt>B<needs>()
See L<Log::Report::Dispatcher/
"Accessors"
>
=item
$obj
-E<gt>B<type>()
See L<Log::Report::Dispatcher/
"Accessors"
>
=back
=head2 Logging
=over 4
=item
$obj
-E<gt>B<collectLocation>()
=item Log::Report::Dispatcher::Perl-E<gt>B<collectLocation>()
See L<Log::Report::Dispatcher/
"Logging"
>
=item
$obj
-E<gt>B<collectStack>([MAXDEPTH])
=item Log::Report::Dispatcher::Perl-E<gt>B<collectStack>([MAXDEPTH])
See L<Log::Report::Dispatcher/
"Logging"
>
=item
$obj
-E<gt>B<
log
>(HASH-of-OPTIONS, REASON, MESSAGE)
See L<Log::Report::Dispatcher/
"Logging"
>
=item
$obj
-E<gt>B<stackTraceLine>(OPTIONS)
=item Log::Report::Dispatcher::Perl-E<gt>B<stackTraceLine>(OPTIONS)
See L<Log::Report::Dispatcher/
"Logging"
>
=item
$obj
-E<gt>B<translate>(HASH-of-OPTIONS, REASON, MESSAGE)
See L<Log::Report::Dispatcher/
"Logging"
>
=back
=head1 SEE ALSO
This module is part of Log-Report distribution version 0.98,
=head1 LICENSE
Copyrights 2007-2012 by [Mark Overmeer]. For other contributors see ChangeLog.
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.