Log::Report::Minimal3pm
Simulate log::report functions simple
Usage
# See Log::Report, most functions get "hollow" behavioruse Log::Report::Optional mode => 'DEBUG';
Inheritance
Log::Report::Minimalis an Exporter
Overview
This module implements the functions provided by Log::Report, but then as simple as possible: no support for translations, no dispatchers, no smart exceptions. The package uses "Log::Report" in an "::Optional" way, the main script determines whether it wants the "::Minimal" or full-blown feature set.
Functions
textdomain( <[$name],$config>|<$name, 'DELETE'|'EXISTS'>|$domain )
Report Production and Configuration
dispatcher( <$type, $name, %options>|<$command, @names> )-
Not supported.
report( [\%options], $reason, $message|<STRING,$params> )-
Be warned that
%optionsis a HASH here.-Option --Defaulterrno $! or 1is_fatal <depends on reason>- errno => INTEGER
- is_fatal => BOOLEAN
try(CODE, %options)
Abbreviations for report()
alert($message)
assert($message)
error($message)
failure($message)
fault($message)
info($message)
mistake($message)
notice($message)
panic($message)
trace($message)
warning($message)
Language Translations
No translations, no Log::Report::Message objects returned.
N__($msgid)
N__n($single_msgid, $plural_msgid)
N__w(STRING)
__($msgid)
__n($msgid, $plural_msgid, $count, PAIRS)
__nx($msgid, $plural_msgid, $count, PAIRS)
__x($msgid, PAIRS)
__xn($single_msgid, $plural_msgid, $count, PAIRS)
Configuration
- $obj->
import( [$domain], %options ) -
See Log::Report subroutine import.
Diagnostics
Error: even length parameter list for __x at $where
|
Cast by _ |
|---|---|
Error: odd length parameter list with '$msg'
|
Cast by |
Error: syntax flag must be either SHORT or REPORT, not `$flag'
|
Cast by |
Error: token '$token' not recognized as reason
|
Cast by |
Releases
7 releases since Debian 8 (Jessie); the text changed 5 times.