Mark Overmeer > Log-Report-0.993 > Log::Report::Dispatcher::Perl

Download:
Log-Report-0.993.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  3
View/Report Bugs
Module Version: 0.993   Source   Latest Release: Log-Report-1.05

NAME ^

Log::Report::Dispatcher::Perl - send messages to die and warn

INHERITANCE ^

 Log::Report::Dispatcher::Perl
   is a Log::Report::Dispatcher

SYNOPSIS ^

 dispatcher Log::Report::Dispatcher::Perl => 'default'
   , accept => 'NOTICE-';

 # close the default dispatcher
 dispatcher close => 'default';

DESCRIPTION ^

Ventilate the problem reports via the standard Perl error mechanisms: die(), warn(), and print(). There can be only one such dispatcher (per thread), because once 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.

METHODS ^

Constructors

$obj->close()

See "Constructors" in Log::Report::Dispatcher

Log::Report::Dispatcher::Perl->new(TYPE, NAME, OPTIONS)

See "Constructors" in Log::Report::Dispatcher

Accessors

$obj->isDisabled()

See "Accessors" in Log::Report::Dispatcher

$obj->mode()

See "Accessors" in Log::Report::Dispatcher

$obj->name()

See "Accessors" in Log::Report::Dispatcher

$obj->needs()

See "Accessors" in Log::Report::Dispatcher

$obj->type()

See "Accessors" in Log::Report::Dispatcher

Logging

$obj->collectLocation()
Log::Report::Dispatcher::Perl->collectLocation()

See "Logging" in Log::Report::Dispatcher

$obj->collectStack([MAXDEPTH])
Log::Report::Dispatcher::Perl->collectStack([MAXDEPTH])

See "Logging" in Log::Report::Dispatcher

$obj->log(HASH-of-OPTIONS, REASON, MESSAGE)

See "Logging" in Log::Report::Dispatcher

$obj->stackTraceLine(OPTIONS)
Log::Report::Dispatcher::Perl->stackTraceLine(OPTIONS)

See "Logging" in Log::Report::Dispatcher

$obj->translate(HASH-of-OPTIONS, REASON, MESSAGE)

See "Logging" in Log::Report::Dispatcher

SEE ALSO ^

This module is part of Log-Report distribution version 0.993, built on March 28, 2013. Website: http://perl.overmeer.net/log-report/

LICENSE ^

Copyrights 2007-2013 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. See http://www.perl.com/perl/misc/Artistic.html

syntax highlighting: