METHODS

Constructors

$obj->close
See close in Log::Report::Dispatcher.
$class->new( TYPE, NAME, OPTIONS )

With syslog, people tend not to include the REASON of the message in the logs, because that is already used to determine the destination of the message. Use new(format_reason) with IGNORE to achieve that.

Option Defined in Default

accept

Log::Report::Dispatcher

depend on mode

facility

'user'

flags

'pid,nowait'

format_reason

Log::Report::Dispatcher

'LOWERCASE'

identity

<basename $0>

locale

Log::Report::Dispatcher

<system locale>

mode

Log::Report::Dispatcher

'NORMAL'

to_prio

[]

accept => REASONS
facility => STRING
The possible values for this depend (a little) on the system. POSIX only defines 'user' and 'local0' upto 'local7'.
flags => STRING
Any combination of pid, ndelay, and nowait, used with openlog(3) if needed
format_reason => 'UPPERCASE'|'LOWERCASE'|'UCFIRST'|'IGNORE'|CODE
identity => STRING
locale => LOCALE
mode => 'NORMAL'|'VERBOSE'|'ASSERT'|'DEBUG'|0..3
to_prio => ARRAY-of-PAIRS
See reasonToPrio().

Accessors

$obj->isDisabled
See isDisabled in Log::Report::Dispatcher.
$obj->mode
See mode in Log::Report::Dispatcher.
$obj->name
See name in Log::Report::Dispatcher.
$obj->needs
See needs in Log::Report::Dispatcher.
$obj->type
See type in Log::Report::Dispatcher.

Logging

$obj->collectLocation
$class->collectLocation
See collectLocation in Log::Report::Dispatcher.
$obj->collectStack( [MAXDEPTH] )
See collectStack in Log::Report::Dispatcher.
$obj->log( HASH-of-OPTIONS, REASON, MESSAGE )
See log in Log::Report::Dispatcher.
$obj->reasonToPrio( REASON )

Returns a level which is understood by syslog(3), based on a translation table. This can be changed with new(to_prio).

$obj->stackTraceLine( OPTIONS )
$class->stackTraceLine( OPTIONS )
See stackTraceLine in Log::Report::Dispatcher.
$obj->translate( HASH-of-OPTIONS, REASON, MESSAGE )
See translate in Log::Report::Dispatcher.