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.

Option Defined in Default

accept

Log::Report::Dispatcher

depend on mode

facility

'user'

flags

'pid,nowait'

format_reason

Log::Report::Dispatcher

'IGNORE'

identity

<basename $0>

locale

Log::Report::Dispatcher

<system locale>

logsocket

undef

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 flags as defined by Sys::Syslog, for instance pid, ndelay, and nowait.
format_reason => 'UPPERCASE'|'LOWERCASE'|'UCFIRST'|'IGNORE'|CODE
identity => STRING
locale => LOCALE
logsocket => 'unix'|'inet'|'stream'
If specified, the log socket type will be initialized to this before openlog is called. If not specified, the system default is used.
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.